From 52915b0646b77b67ba73651a6642139ed32ce00b Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sat, 9 Sep 2023 19:52:24 +0300 Subject: [PATCH] fix logout on native app --- ng-app/src/App.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ng-app/src/App.svelte b/ng-app/src/App.svelte index 5742ac5..d0a8590 100644 --- a/ng-app/src/App.svelte +++ b/ng-app/src/App.svelte @@ -53,6 +53,12 @@ let walls = await ng.get_wallets_from_localstorage(); wallets.set(walls); + unsubscribe = active_wallet.subscribe((value) => { + if (value && !value.wallet) { + active_wallet.set(undefined); + } + }); + let window_api = await import("@tauri-apps/plugin-window"); let event_api = await import("@tauri-apps/api/event"); let main = window_api.Window.getByLabel("main");