Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
fix: fix essential provider crashing on not logged in state
Browse files Browse the repository at this point in the history
Fixes #375
  • Loading branch information
Craftplacer committed May 23, 2023
1 parent c8a55c7 commit f32dbb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kaiteki/lib/routing/notifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RouterNotifier extends _$RouterNotifier implements Listenable {

@override
AccountKey? build() {
final key = ref.read(accountProvider)!.key;
final key = ref.read(accountProvider)?.key;

ref.listenSelf((_, __) => _routerListener?.call());

Expand Down

0 comments on commit f32dbb5

Please sign in to comment.