FIX: Android Wallet Coin Control "Use Coins" button with checkbox selection does not work #7016

This commit is contained in:
Marcos Rodriguez Velez 2024-09-05 20:12:29 -04:00
parent ee9c5d2e29
commit b964ccb9ff

View file

@ -328,7 +328,6 @@ const CoinControl = () => {
const handleChoose = item => setOutput(item);
const handleUseCoin = async u => {
await bottomModalRef.current?.dismiss();
setOutput(null);
navigation.pop();
onUTXOChoose(u);
@ -422,7 +421,14 @@ const CoinControl = () => {
backgroundColor={colors.elevated}
footer={
<View style={mStyles.buttonContainer}>
<Button testID="UseCoin" title={loc.cc.use_coin} onPress={() => handleUseCoin([output])} />
<Button
testID="UseCoin"
title={loc.cc.use_coin}
onPress={async () => {
await bottomModalRef.current?.dismiss();
handleUseCoin([output]);
}}
/>
</View>
}
footerDefaultMargins