Update coinControl.js

This commit is contained in:
Marcos Rodriguez Velez 2024-07-24 12:10:08 -04:00
parent 5e6310d25f
commit fbbc5e110b
No known key found for this signature in database
GPG key ID: 6030B2F48CCE86D7

View file

@ -330,6 +330,7 @@ const CoinControl = () => {
const handleUseCoin = async u => { const handleUseCoin = async u => {
await bottomModalRef.current?.dismiss(); await bottomModalRef.current?.dismiss();
setOutput(null);
navigation.pop(); navigation.pop();
onUTXOChoose(u); onUTXOChoose(u);
}; };
@ -394,8 +395,6 @@ const CoinControl = () => {
useEffect(() => { useEffect(() => {
if (output) { if (output) {
bottomModalRef.current?.present(); bottomModalRef.current?.present();
} else {
bottomModalRef.current?.dismiss();
} }
}, [output]); }, [output]);