Skip to content

Commit

Permalink
Fix casting while saving the twin ID in the device storage
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed Sep 4, 2024
1 parent 803bd81 commit f2a501e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/services/shared_preference_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Future<void> saveTwinId(int twinId) async {
prefs.remove('twinId');

prefs.setInt('twinId', twinId);
updateUserData("twinId", twinId as String);
updateUserData("twinId", twinId.toString());
}

Future<int?> getTwinId() async {
Expand Down

0 comments on commit f2a501e

Please sign in to comment.