Skip to content

Commit

Permalink
fix cancel bioauth
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed May 23, 2022
1 parent 56bef3d commit c34468e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 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'

Expand All @@ -9,6 +10,7 @@ storiesOf('BiometricAuthScreen', module)
.add('Default', ({route, navigation}) => {
route.params = {
onSuccess: () => ({}),
onFail: action('onFail'),
}
return <BiometricAuthScreen navigation={navigation} route={route} />
})
Expand Down
11 changes: 10 additions & 1 deletion src/Send/ConfirmScreen/ConfirmScreen.tsx
Expand Up @@ -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) {
Expand Down

0 comments on commit c34468e

Please sign in to comment.