FIX: Sometimes would crash due to lack of initialParams

This commit is contained in:
Marcos Rodriguez Velez 2023-11-04 13:25:03 -04:00
parent 66fcaa040d
commit 19c8a87886
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7
2 changed files with 8 additions and 1 deletions

View File

@ -216,7 +216,12 @@ const SendDetailsRoot = () => {
return (
<SendDetailsStack.Navigator screenOptions={{ headerHideShadow: true }}>
<SendDetailsStack.Screen name="SendDetails" component={SendDetails} options={SendDetails.navigationOptions(theme)} />
<SendDetailsStack.Screen
name="SendDetails"
component={SendDetails}
options={SendDetails.navigationOptions(theme)}
initialParams={SendDetails.initialParams}
/>
<SendDetailsStack.Screen name="Confirm" component={Confirm} options={Confirm.navigationOptions(theme)} />
<SendDetailsStack.Screen
name="PsbtWithHardwareWallet"

View File

@ -1682,3 +1682,5 @@ SendDetails.navigationOptions = navigationStyleTx({}, options => ({
title: loc.send.header,
statusBarStyle: 'light',
}));
SendDetails.initialParams = { isEditable: true };