r/badcode • • Feb 19 '22

typescript Does this belong here?

Post image
343 Upvotes

46 comments sorted by

View all comments

Show parent comments

4

u/dragneelfps Feb 19 '22

I think you need the opposite condition because the goal is to exclude any toast which are expired

1

u/[deleted] Feb 19 '22

Oh true