mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-03 02:30:29 +08:00
Revert sign-in state when error
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user