Remove the cancel button if there is no registered accounts

This commit is contained in:
Rodolphe Bréard 2023-07-30 16:44:06 +02:00
parent f93198ebee
commit ea50c4b65e

View file

@ -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('/');