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. 7
      src/components/FeesField/BitcoinKind.js

7
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.push(customItem)
const selectedItem =
prevState.selectedItem.feePerByte === feePerByte
? prevState.selectedItem
: items.find(f => f.feePerByte === feePerByte) || items[items.length - 1]
const selectedItem = prevState.selectedItem.feePerByte.eq(feePerByte)
? prevState.selectedItem
: items.find(f => f.feePerByte.eq(feePerByte)) || items[items.length - 1]
return { items, selectedItem }
}

Loading…
Cancel
Save