r/badcode • • Feb 19 '22

typescript Does this belong here?

/img/6fayj9jx5ti81.png
343 Upvotes

46 comments sorted by

View all comments

Show parent comment

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