mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-07-10 12:37:16 +02:00
mobile: show error on both inputs in case of invalid keypair
This commit is contained in:
committed by
Abdullah Atta
parent
229edaae55
commit
4e057fa788
@@ -246,6 +246,7 @@ const ManageInboxKeys = () => {
|
||||
const result = await Storage.validatePGPKeyPair(keysEdited);
|
||||
|
||||
if (!result.isValid) {
|
||||
formRef.current.setError("publicKey", result.message);
|
||||
formRef.current.setError("privateKey", result.message);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user