kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'fix-error-missing-invalid-nsec' into 'main'
Set error if prefix is different than nsec in nostr login See merge request soapbox-pub/soapbox!3021environments/review-main-yi2y9f/deployments/4608
commit
d43e0bf068
|
@ -34,7 +34,9 @@ const KeyAddStep: React.FC<IKeyAddStep> = ({ onClose }) => {
|
|||
const pubkey = await signer.getPublicKey();
|
||||
dispatch(logInNostr(pubkey));
|
||||
onClose();
|
||||
return;
|
||||
}
|
||||
setError('Invalid nsec');
|
||||
} catch (e) {
|
||||
setError('Invalid nsec');
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue