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(() {}); }); }