From 8ff63c9492fe3448cedf2344b6e8ee4bac406242 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Mon, 22 Apr 2024 16:59:08 +0200 Subject: [PATCH] fix: set correct graph type when opening graph view fixes #41 --- lib/views/graph_view.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/views/graph_view.dart b/lib/views/graph_view.dart index 8f701b2..4a25c4c 100644 --- a/lib/views/graph_view.dart +++ b/lib/views/graph_view.dart @@ -97,7 +97,8 @@ class _GraphViewState extends State { super.initState(); loadWallet(); SharedPreferences.getInstance().then((s) { - chartType = s.getInt("monthlygraph") ?? 2; + chartType = s.getInt("yearlygraph") ?? 1; + logger.d(chartType); setState(() {}); }); }