From f291a7f8c1921d6566a06ac1e88e76c3e11e08d4 Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Wed, 6 Mar 2024 11:42:10 -0800 Subject: [PATCH] fix --- lib/view_model/settings/tor_view_model.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/view_model/settings/tor_view_model.dart b/lib/view_model/settings/tor_view_model.dart index 2efaa96ac..ecb4535ba 100644 --- a/lib/view_model/settings/tor_view_model.dart +++ b/lib/view_model/settings/tor_view_model.dart @@ -79,8 +79,8 @@ abstract class TorViewModelBase with Store { Future disconnectFromNode() async { final appStore = getIt.get(); - appStore.wallet!.syncStatus = NotConnectedSyncStatus(); - await appStore.wallet!.connectToNode(node: Node(uri: "http://127.0.0.1")); + appStore.wallet?.syncStatus = NotConnectedSyncStatus(); + await appStore.wallet?.connectToNode(node: Node(uri: "http://127.0.0.1")); } @action