Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ android {
applicationId "com.bitpay.wallet"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 91212452
versionName "14.48.0"
versionCode 91212454
versionName "14.48.2"
missingDimensionStrategy 'react-native-camera', 'mlkit'
// A perf build allows screenshots (no FLAG_SECURE) and is profileable, so
// it must never be signed with the Play upload key: refuse the build if
Expand Down
2 changes: 1 addition & 1 deletion ios/BitPayApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>14.48.0</string>
<string>14.48.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitpay",
"version": "14.48.0",
"version": "14.48.2",
"private": true,
"engines": {
"node": "^22.13.0 || ^24.3.0 || >=26.0.0"
Expand Down
15 changes: 8 additions & 7 deletions src/navigation/wallet/screens/AmountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,16 @@ const AmountScreen: React.FC<
NativeStackScreenProps<WalletGroupParamList, WalletScreens.AMOUNT>
> = ({navigation, route}) => {
const {t} = useTranslation();
const [buttonState, setButtonState] = useState<ButtonState>();
const [buttonState, setButtonStateValue] = useState<ButtonState>();
const [showWalletOptions, setShowWalletOptions] = useState(false);
const [isSendMax, setIsSendMax] = useState(false);
// A failed submit also clears send-max, so the button is usable again.
const setButtonState = useCallback((state: ButtonState) => {
setButtonStateValue(state);
if (state === 'failed') {
setIsSendMax(false);
}
}, []);

const {
wallet,
Expand All @@ -123,12 +130,6 @@ const AmountScreen: React.FC<
onSendMaxPressedRef.current = onSendMaxPressed;
});

useEffect(() => {
if (buttonState === 'failed') {
setIsSendMax(false);
}
}, [buttonState]);

useEffect(
() => navigation.addListener('focus', () => setIsSendMax(false)),
[navigation],
Expand Down
13 changes: 11 additions & 2 deletions src/navigation/wallet/screens/send/GlobalSendTo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
import React, {
useCallback,
useEffect,
useLayoutEffect,
useMemo,
useRef,
useState,
} from 'react';
import {SafeAreaView, ScrollView, StyleSheet, View} from 'react-native';
import {
RouteProp,
Expand Down Expand Up @@ -90,7 +97,9 @@ const GlobalSendTo = () => {
};

const goToRecipientRef = useRef(goToRecipient);
goToRecipientRef.current = goToRecipient;
useLayoutEffect(() => {
goToRecipientRef.current = goToRecipient;
});

const debouncedValidateSearchInput = useDebouncedSendToValidation(text => {
const data = text.trim();
Expand Down
Loading