FIX: Android Wallet Coin Control "Use Coins" button with checkbox sel…
This commit is contained in:
GLaDOS 2024-09-06 07:48:31 +00:00 committed by GitHub
commit 4070d066c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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