mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 15:04:50 +01:00
Merge pull request #7025 from BlueWallet/Android-Wallet-Coin-Control-Use-Coins-button-with-checkbox-selection-does-not-work-#7016
FIX: Android Wallet Coin Control "Use Coins" button with checkbox sel…
This commit is contained in:
commit
4070d066c3
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue