Browse Source

fix fees for bitcoin. fixes #1306

master
Valentin D. Pinkman 7 years ago
parent
commit
74cd3792f0
No known key found for this signature in database GPG Key ID: E7D110669FFB8D3E
  1. 5
      src/components/FeesField/BitcoinKind.js

5
src/components/FeesField/BitcoinKind.js

@ -79,10 +79,9 @@ class FeesField extends Component<Props & { fees?: Fees, error?: Error }, State>
items = items.sort((a, b) => a.blockCount - b.blockCount) items = items.sort((a, b) => a.blockCount - b.blockCount)
} }
items.push(customItem) items.push(customItem)
const selectedItem = const selectedItem = prevState.selectedItem.feePerByte.eq(feePerByte)
prevState.selectedItem.feePerByte === feePerByte
? prevState.selectedItem ? prevState.selectedItem
: items.find(f => f.feePerByte === feePerByte) || items[items.length - 1] : items.find(f => f.feePerByte.eq(feePerByte)) || items[items.length - 1]
return { items, selectedItem } return { items, selectedItem }
} }

Loading…
Cancel
Save