Browse Source

LL-631 make fees level selectable event if fees have the same value

gre-patch-1
Valentin D. Pinkman 6 years ago
parent
commit
012258849f
No known key found for this signature in database GPG Key ID: E7D110669FFB8D3E
  1. 2
      src/components/FeesField/BitcoinKind.js

2
src/components/FeesField/BitcoinKind.js

@ -89,7 +89,7 @@ class FeesField extends Component<OwnProps, State> {
}
items.push(!feePerByte && !error ? notLoadedItem : customItem)
const selectedItem =
!feePerByte && prevState.selectedItem.feePerByte.eq(feePerByte)
feePerByte && prevState.selectedItem.feePerByte.eq(feePerByte)
? prevState.selectedItem
: items.find(f => f.feePerByte.eq(feePerByte)) || items[items.length - 1]
return { items, selectedItem }

Loading…
Cancel
Save