mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
WIP
This commit is contained in:
parent
627cea43ff
commit
65a687eb50
@ -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);
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user