Browse Source
Merge pull request #1328 from valpinkman/fix/btc-custom-fees
fix fees for bitcoin. fixes #1306
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
4 deletions
-
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 } |
|
|
|
} |
|
|
|
|
|
|
|