mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 09:50:15 +01:00
FIX: bip47 notif tx when inserting contact
This commit is contained in:
parent
492c8fe689
commit
9d56d63c8f
@ -160,7 +160,6 @@ const SendDetails = () => {
|
||||
|
||||
useEffect(() => {
|
||||
// decode route params
|
||||
console.warn('routeParams', routeParams);
|
||||
const currentAddress = addresses[scrollIndex.current];
|
||||
if (routeParams.uri) {
|
||||
try {
|
||||
@ -217,7 +216,6 @@ const SendDetails = () => {
|
||||
const index = addresses.length === 0 ? 0 : scrollIndex.current;
|
||||
const isEmptyArray = addresses.length > 0 || addresses.length < 2;
|
||||
const addRecipientParams = routeParams.addRecipientParams;
|
||||
console.warn('isEmptyArray', isEmptyArray);
|
||||
|
||||
if (isEmptyArray) {
|
||||
if (Number(addRecipientParams.amount) > 0) {
|
||||
|
@ -111,6 +111,17 @@ export default function PaymentCodesList() {
|
||||
};
|
||||
|
||||
const onToolTipPress = async (id: any, pc: string) => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
await _onToolTipPress(id, pc);
|
||||
} catch (error: any) {
|
||||
presentAlert({ message: error.message });
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
};
|
||||
|
||||
const _onToolTipPress = async (id: any, pc: string) => {
|
||||
if (String(id) === String(Actions.copyToClipboard)) {
|
||||
Clipboard.setString(pc);
|
||||
}
|
||||
@ -171,7 +182,7 @@ export default function PaymentCodesList() {
|
||||
|
||||
if (previousRouteName === 'SendDetails') {
|
||||
return (
|
||||
<TouchableOpacity onPress={() => _navigateToSend(pc)}>
|
||||
<TouchableOpacity onPress={() => onToolTipPress(Actions.pay, pc)}>
|
||||
<View style={styles.contactRowContainer}>
|
||||
<View style={[styles.circle, { backgroundColor: '#' + color }]} />
|
||||
<View style={styles.contactRowBody}>
|
||||
|
Loading…
Reference in New Issue
Block a user