mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-23 13:49:01 +00:00
Merge pull request #1732 from RoboSats/change-swap-type-results
Switch swap type filter results
This commit is contained in:
commit
8f4859908f
@ -45,7 +45,7 @@ const BookControl = ({
|
|||||||
} else if (fav.mode === 'fiat') {
|
} else if (fav.mode === 'fiat') {
|
||||||
setOrderType(fav.type === 1 ? 'buy' : 'sell');
|
setOrderType(fav.type === 1 ? 'buy' : 'sell');
|
||||||
} else {
|
} else {
|
||||||
setOrderType(fav.type === 1 ? 'swapout' : 'swapin');
|
setOrderType(fav.type === 1 ? 'swapin' : 'swapout');
|
||||||
}
|
}
|
||||||
}, [fav.mode, fav.type]);
|
}, [fav.mode, fav.type]);
|
||||||
|
|
||||||
@ -67,9 +67,9 @@ const BookControl = ({
|
|||||||
const currency = fav.currency === 1000 ? 0 : fav.currency;
|
const currency = fav.currency === 1000 ? 0 : fav.currency;
|
||||||
setFav({ ...fav, mode: 'fiat', type: 1, currency });
|
setFav({ ...fav, mode: 'fiat', type: 1, currency });
|
||||||
} else if (select.props.value === 'swapin') {
|
} else if (select.props.value === 'swapin') {
|
||||||
setFav({ ...fav, mode: 'swap', type: 0, currency: 1000 });
|
|
||||||
} else if (select.props.value === 'swapout') {
|
|
||||||
setFav({ ...fav, mode: 'swap', type: 1, currency: 1000 });
|
setFav({ ...fav, mode: 'swap', type: 1, currency: 1000 });
|
||||||
|
} else if (select.props.value === 'swapout') {
|
||||||
|
setFav({ ...fav, mode: 'swap', type: 0, currency: 1000 });
|
||||||
} else {
|
} else {
|
||||||
const currency = fav.currency === 1000 ? 0 : fav.currency;
|
const currency = fav.currency === 1000 ? 0 : fav.currency;
|
||||||
setFav({ ...fav, mode: 'fiat', type: null, currency });
|
setFav({ ...fav, mode: 'fiat', type: null, currency });
|
||||||
|
Loading…
Reference in New Issue
Block a user