Browse Source

Merge pull request #1691 from valpinkman/fix/edit-fees

LL-631 make fees level selectable event if fees have the same value
gre-patch-1
Valentin D. Pinkman 6 years ago
committed by GitHub
parent
commit
d14819f125
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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