Skip to content

Commit

Permalink
Remove unnecessairly global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Sep 9, 2024
1 parent 743d56b commit be5ec4c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/lib/helpers/globals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class Globals {

int smsSentOn = 0;
int smsMinutesCoolDown = 5;
int twinId = 0;
int spendingLimit = 0;

ValueNotifier<bool> hidePhoneButton = ValueNotifier(false);
Expand Down
1 change: 0 additions & 1 deletion app/lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,5 @@ class _AppState extends State<MainScreen> {
await saveTwinId(twinId);
}
}
Globals().twinId = twinId ?? 0;
}
}

0 comments on commit be5ec4c

Please sign in to comment.