fix: set error if prefix is different than nsec
This commit is contained in:
parent
315d570645
commit
b91a02b75f
|
@ -34,7 +34,9 @@ const KeyAddStep: React.FC<IKeyAddStep> = ({ onClose }) => {
|
||||||
const pubkey = await signer.getPublicKey();
|
const pubkey = await signer.getPublicKey();
|
||||||
dispatch(logInNostr(pubkey));
|
dispatch(logInNostr(pubkey));
|
||||||
onClose();
|
onClose();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
setError('Invalid nsec');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setError('Invalid nsec');
|
setError('Invalid nsec');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue