fix: set error if prefix is different than nsec

This commit is contained in:
P. Reis 2024-05-12 18:37:16 -03:00
parent 315d570645
commit b91a02b75f
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');
}