Skip to content

Commit

Permalink
fix: reset activeLibraryId on 'Try again' button press in HomePage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Oct 3, 2024
1 parent 19c5385 commit b814739
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pages/home_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class HomePage extends HookConsumerWidget {
// try again button
ElevatedButton(
onPressed: () {
ref.read(apiSettingsProvider.notifier).updateState(
apiSettings.copyWith(activeLibraryId: null),
);
ref.invalidate(personalizedViewProvider);
},
child: const Text('Try again'),
Expand Down

0 comments on commit b814739

Please sign in to comment.