FIX: correct merge of params when navigating between screens

This commit is contained in:
overtorment 2023-12-13 11:57:30 +00:00
parent dfd5f37224
commit 5b40159c08
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ const PsbtMultisigQRCode = () => {
alert(loc.wallets.import_error);
} else {
// psbt base64?
navigate('PsbtMultisig', { receivedPSBTBase64: ret.data }, { merge: true });
navigate({ name: 'PsbtMultisig', params: { receivedPSBTBase64: ret.data }, merge: true });
}
};

View File

@ -77,7 +77,7 @@ const PsbtWithHardwareWallet = () => {
if (launchedBy) {
// we must navigate back to the screen who requested psbt (instead of broadcasting it ourselves)
// most likely for LN channel opening
navigation.navigate(launchedBy, { psbt }, { merge: true });
navigation.navigate({ name: launchedBy, params: { psbt }, merge: true });
// ^^^ we just use `psbt` variable sinse it was finalized in the above _combinePSBT()
// (passed by reference)
}