Page MenuHomePhabricator

D12549.id41631.diff
No OneTemporary

D12549.id41631.diff

diff --git a/web/account/siwe-login-form.react.js b/web/account/siwe-login-form.react.js
--- a/web/account/siwe-login-form.react.js
+++ b/web/account/siwe-login-form.react.js
@@ -205,7 +205,14 @@
SIWEMessageTypes.MSG_AUTH,
);
const message = createSIWEMessage(address, statement, siweNonce);
- const signature = await signer.signMessage({ message });
+ let signature;
+ try {
+ signature = await signer.signMessage({ message });
+ } catch (e) {
+ // If we fail to get the signature (e.g. user cancels the request), we
+ // should return immediately
+ return;
+ }
if (usingCommServicesAccessToken) {
await attemptWalletLogIn(address, message, signature);
} else {

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 7:40 PM (16 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681553
Default Alt Text
D12549.id41631.diff (733 B)

Event Timeline