This commit is contained in:
Marcos Rodriguez Vélez 2021-09-07 19:43:13 -04:00
parent 627cea43ff
commit 65a687eb50
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const Confirm = () => {
const { wallets, fetchAndSaveWalletTransactions, isElectrumDisabled } = useContext(BlueStorageContext);
const [isBiometricUseCapableAndEnabled, setIsBiometricUseCapableAndEnabled] = useState(false);
const { params } = useRoute();
const { recipients = [], walletID, fee, memo = '', tx, satoshiPerByte, psbt } = params;
const { recipients = [], walletID, fee, memo, tx, satoshiPerByte, psbt } = params;
const [isLoading, setIsLoading] = useState(false);
const [isPayjoinEnabled, setIsPayjoinEnabled] = useState(false);
const wallet = wallets.find(wallet => wallet.getID() === walletID);

View File

@ -18,7 +18,7 @@ import { useNavigation, useRoute, useTheme } from '@react-navigation/native';
const currency = require('../../blue_modules/currency');
const SendCreate = () => {
const { fee, recipients, memo, satoshiPerByte, psbt, showAnimatedQr, tx } = useRoute().params;
const { fee, recipients, memo = '', satoshiPerByte, psbt, showAnimatedQr, tx } = useRoute().params;
const size = Math.round(tx.length / 2);
const { colors } = useTheme();
const { setOptions } = useNavigation();
@ -168,7 +168,7 @@ const SendCreate = () => {
<Text style={[styles.transactionDetailsSubtitle, styleHooks.transactionDetailsSubtitle]}>{size} bytes</Text>
<Text style={[styles.transactionDetailsTitle, styleHooks.transactionDetailsTitle]}>{loc.send.create_satoshi_per_byte}</Text>
<Text style={[styles.transactionDetailsSubtitle, styleHooks.transactionDetailsSubtitle]}>{satoshiPerByte} Sat/B</Text>
{memo.length > 0 && (
{memo?.length > 0 && (
<>
<Text style={[styles.transactionDetailsTitle, styleHooks.transactionDetailsTitle]}>{loc.send.create_memo}</Text>
<Text style={[styles.transactionDetailsSubtitle, styleHooks.transactionDetailsSubtitle]}>{memo}</Text>