From 74cd3792f09b31fcae9aa49ea32228461123277e Mon Sep 17 00:00:00 2001 From: "Valentin D. Pinkman" Date: Mon, 30 Jul 2018 14:13:02 +0200 Subject: [PATCH] fix fees for bitcoin. fixes #1306 --- src/components/FeesField/BitcoinKind.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/FeesField/BitcoinKind.js b/src/components/FeesField/BitcoinKind.js index 3d3cd671..3bae574c 100644 --- a/src/components/FeesField/BitcoinKind.js +++ b/src/components/FeesField/BitcoinKind.js @@ -79,10 +79,9 @@ class FeesField extends Component 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 } }