{#if apiPassword.length === 0}

To save things to the ledger you need to enter the password. Right now you haven't set one.

{/if} {#if state === "view"} {:else}
{/if}