Skip to content

Commit

Permalink
Update main.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Turtlepaw authored Oct 1, 2024
1 parent 9574ca6 commit debf506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void callbackDispatcher() {
print(currentPosition);

// -1 = ended
if(challenge.getBoolValue("ended") && (storedRankingState != null || storedRankingState != -1)){
if (challenge.getBoolValue("ended") && storedRankingState != null && storedRankingState != -1) {
await flutterLocalNotificationsPlugin.show(challenge.id.hashCode, "Challenge complete! ✨", "See how you finished ${challenge.getStringValue("name")} (${storedRankingState})", notificationDetails, payload: challenge.id);
currentPosition = -1;
} else if (isTop && (storedRankingState == null || storedRankingState > 1)) {
Expand Down

0 comments on commit debf506

Please sign in to comment.