From 20dbbda08bbfcc971037e1fcea6407f1a54c25ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Jul 2023 19:16:00 +0200 Subject: [PATCH] Use the toMainView function --- src/views/AddAccountView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/AddAccountView.vue b/src/views/AddAccountView.vue index 6c639d7..b5641ae 100644 --- a/src/views/AddAccountView.vue +++ b/src/views/AddAccountView.vue @@ -45,7 +45,7 @@ const addAccount = () => { key: key, }; accounts.value.push(newAccount); - return router.push('/'); + return toMainView(); } catch (e) { console.log(e); }