From c68e739ffe9f913e245fdb5231524aa4edbdf023 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Wed, 25 Jan 2023 10:33:32 -0600 Subject: [PATCH] ID -> Id --- lib/utilities/prefs.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/utilities/prefs.dart b/lib/utilities/prefs.dart index b306e6ee7..54e8e2b62 100644 --- a/lib/utilities/prefs.dart +++ b/lib/utilities/prefs.dart @@ -39,7 +39,7 @@ class Prefs extends ChangeNotifier { _startupWalletId = await _getStartupWalletId(); _externalCalls = await _getHasExternalCalls(); _familiarity = await _getHasFamiliarity(); - _userID = await _getUserID(); + _userId = await _getUserId(); _initialized = true; } @@ -605,10 +605,10 @@ class Prefs extends ChangeNotifier { return true; } - String? _userID; - String? get userID => _userID; + String? _userId; + String? get userID => _userId; - Future _getUserID() async { + Future _getUserId() async { String? userID = await DB.instance .get(boxName: DB.boxNamePrefs, key: "userID") as String?; if (userID == null) { @@ -618,10 +618,10 @@ class Prefs extends ChangeNotifier { return userID; } - Future saveUserID(String userID) async { - _userID = userID; + Future saveUserID(String userId) async { + _userId = userId; await DB.instance - .put(boxName: DB.boxNamePrefs, key: "userID", value: _userID); + .put(boxName: DB.boxNamePrefs, key: "userID", value: _userId); // notifyListeners(); } }