Skip to content

Commit

Permalink
Fix date comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
tillprochaska committed Aug 3, 2022
1 parent aadd068 commit 062e083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function selectPinnedMessage(state) {
}

const activeMessages = messages.filter(({ displayUntil }) => {
return !displayUntil || Date.now() <= displayUntil;
return !displayUntil || Date.now() <= new Date(displayUntil);
});

if (activeMessages.length <= 0) {
Expand Down

0 comments on commit 062e083

Please sign in to comment.