mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
chore: fix add null check before accessing auth cookie from hive box #1264
This commit is contained in:
parent
0ae6af61c9
commit
e6a20b5a16
@ -50,7 +50,7 @@ final routerProvider = Provider((ref) {
|
|||||||
ref.read(AuthenticationNotifier.provider.notifier);
|
ref.read(AuthenticationNotifier.provider.notifier);
|
||||||
final json = await authNotifier.box.get(authNotifier.cacheKey);
|
final json = await authNotifier.box.get(authNotifier.cacheKey);
|
||||||
|
|
||||||
if (json["cookie"] == null &&
|
if (json?["cookie"] == null &&
|
||||||
!KVStoreService.doneGettingStarted) {
|
!KVStoreService.doneGettingStarted) {
|
||||||
return "/getting-started";
|
return "/getting-started";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user