FIX: bip47 notif tx when inserting contact

This commit is contained in:
overtorment 2024-06-11 16:28:49 +01:00
parent 492c8fe689
commit 9d56d63c8f
2 changed files with 12 additions and 3 deletions

View File

@ -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) {

View File

@ -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}>