close automatically recovery modal only on error

This commit is contained in:
Abhinav 2022-01-26 19:25:37 +05:30
parent 36c2c77546
commit 79e543f5db

View file

@ -25,7 +25,6 @@ function RecoveryKeyModal({ somethingWentWrong, ...props }: Props) {
setRecoveryKey(bip39.entropyToMnemonic(recoveryKey));
} catch (e) {
somethingWentWrong();
} finally {
props.onHide();
}
};