chore: fix add null check before accessing auth cookie from hive box #1264

This commit is contained in:
Kingkor Roy Tirtho 2024-02-26 10:05:50 +06:00
parent 0ae6af61c9
commit e6a20b5a16

View File

@ -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";
}