diff --git a/legacy/components/Send/BiometricAuthScreen.stories.js b/legacy/components/Send/BiometricAuthScreen.stories.js index 3dba27c787..ff727d2cdd 100644 --- a/legacy/components/Send/BiometricAuthScreen.stories.js +++ b/legacy/components/Send/BiometricAuthScreen.stories.js @@ -1,5 +1,6 @@ // @flow +import {action} from '@storybook/addon-actions' import {storiesOf} from '@storybook/react-native' import React from 'react' @@ -9,6 +10,7 @@ storiesOf('BiometricAuthScreen', module) .add('Default', ({route, navigation}) => { route.params = { onSuccess: () => ({}), + onFail: action('onFail'), } return }) diff --git a/src/Send/ConfirmScreen/ConfirmScreen.tsx b/src/Send/ConfirmScreen/ConfirmScreen.tsx index b016026abb..ead47b37d2 100644 --- a/src/Send/ConfirmScreen/ConfirmScreen.tsx +++ b/src/Send/ConfirmScreen/ConfirmScreen.tsx @@ -196,7 +196,16 @@ export const ConfirmScreen = () => { await submitTx(signRequest, decryptedKey) }, - onFail: () => navigation.goBack(), + onFail: () => + navigation.navigate('app-root', { + screen: 'main-wallet-routes', + params: { + screen: 'send-ada', + params: { + screen: 'send-ada-main', + }, + }, + }), }) } catch (e) { if (e instanceof SystemAuthDisabled) {