Revert sign-in state when error

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-05-18 15:45:47 +02:00
parent 75ffc5c06d
commit 9072fe95bb
+5 -1
View File
@@ -23,7 +23,11 @@
disabled={connection === Connection.Connecting}
on:click={async () => {
connection = Connection.Connecting;
await signInWithEthereum(seed, config);
try {
await signInWithEthereum(seed, config);
} catch {
connection = Connection.Disconnected;
}
}}
>
{#if connection === Connection.Connecting}