aboutsummaryrefslogtreecommitdiffstats
path: root/lib/presentation/screens/settings/settings_screens/units
diff options
context:
space:
mode:
Diffstat (limited to 'lib/presentation/screens/settings/settings_screens/units')
-rw-r--r--lib/presentation/screens/settings/settings_screens/units/units_screen.dart2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/presentation/screens/settings/settings_screens/units/units_screen.dart b/lib/presentation/screens/settings/settings_screens/units/units_screen.dart
index ba84471..181eeb9 100644
--- a/lib/presentation/screens/settings/settings_screens/units/units_screen.dart
+++ b/lib/presentation/screens/settings/settings_screens/units/units_screen.dart
@@ -18,7 +18,7 @@ class UnitsPage extends ConsumerWidget {
title: 'Units',
hasBackButton: true,
onPressed: () {
- context.flow<AppState>().update((state) => AppState.settings);
+ ref.read(appProvider.notifier).back();
},
),
Expanded(