feat: save new overrires from commissions list

This commit is contained in:
Jose Sousa 2020-11-17 17:32:28 +00:00 committed by Josh Harvey
parent e918a62994
commit 9d52b49083
3 changed files with 34 additions and 1 deletions

View file

@ -576,6 +576,11 @@ const sortCommissionsBy = (prop, machines) => {
}
}
const removeCoinFromOverride = crypto => override =>
R.mergeRight(override, {
cryptoCurrencies: R.without([crypto], override.cryptoCurrencies)
})
export {
mainFields,
overrides,
@ -593,6 +598,7 @@ export {
byCoin,
sortCommissionsBy,
filterCommissions,
removeCoinFromOverride,
SHOW_ALL,
ORDER_OPTIONS
}