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!3021
This commit is contained in:
Alex Gleason 2024-05-12 21:56:32 +00:00
commit d43e0bf068
1 changed files with 2 additions and 0 deletions

View File

@ -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');
}