Skip to content

Commit

Permalink
Fix: date comparison logic in HomeScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 2, 2025
1 parent 4682042 commit c59b5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobile/screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const HomeScreen = ({ navigation, route }: NativeStackScreenProps<StackParams, '
if (date) {
date.setHours(12, 0, 0, 0)

if (to && ((to.getTime() <= date.getTime()) || (date.getTime() > to.getTime()))) {
if (to && date.getTime() >= to.getTime()) {
setTo(undefined)
}

Expand Down

0 comments on commit c59b5c3

Please sign in to comment.