Skip to content

Commit

Permalink
fix(storage): Fix type exception when updating cookie cache
Browse files Browse the repository at this point in the history
  • Loading branch information
realth000 committed Aug 10, 2024
1 parent 618b55a commit cffda12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/shared/providers/storage_provider/storage_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ class StorageProvider with LoggerMixin {
required String email,
required Cookie cookie,
}) async {
final allCookie = getCookieByUidSync(uid) ?? {};
final allCookie = getCookieByUidSync(uid) ?? <String, dynamic>{};

// Combine two map together, do not directly use [cookie].
// ignore: cascade_invocations
allCookie.addAll(cookie);
allCookie.addAll(Map.castFrom<String, dynamic, String, String>(cookie));

// Update cookie cache.
final userInfo = UserLoginInfo(username: username, uid: uid, email: email);
Expand Down

0 comments on commit cffda12

Please sign in to comment.