close automatically recovery modal only on error
This commit is contained in:
parent
36c2c77546
commit
79e543f5db
|
@ -25,7 +25,6 @@ function RecoveryKeyModal({ somethingWentWrong, ...props }: Props) {
|
|||
setRecoveryKey(bip39.entropyToMnemonic(recoveryKey));
|
||||
} catch (e) {
|
||||
somethingWentWrong();
|
||||
} finally {
|
||||
props.onHide();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue