Skip to content

Commit

Permalink
chore: fix add null check before accessing auth cookie from hive box #…
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Feb 26, 2024
1 parent 0ae6af6 commit e6a20b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collections/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ final routerProvider = Provider((ref) {
ref.read(AuthenticationNotifier.provider.notifier);
final json = await authNotifier.box.get(authNotifier.cacheKey);

if (json["cookie"] == null &&
if (json?["cookie"] == null &&
!KVStoreService.doneGettingStarted) {
return "/getting-started";
}
Expand Down

0 comments on commit e6a20b5

Please sign in to comment.