From ea50c4b65ea47e2e05fa29dd6d2fa70fdb045f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolphe=20Br=C3=A9ard?= Date: Sun, 30 Jul 2023 16:44:06 +0200 Subject: [PATCH] Remove the cancel button if there is no registered accounts --- src/views/AddAccountView.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/views/AddAccountView.vue b/src/views/AddAccountView.vue index 244ca6e..6c639d7 100644 --- a/src/views/AddAccountView.vue +++ b/src/views/AddAccountView.vue @@ -54,8 +54,7 @@ const addAccount = () => { // Cancel button const cancellDisabled = computed(() => { - // TODO: return true if there is no account in the local storage - return false; + return !accounts.value.length; }); const toMainView = () => { return router.push('/');