From 160c8442249c3556587a6e749770f5a619e2ee96 Mon Sep 17 00:00:00 2001 From: Keith Date: Mon, 30 Sep 2019 14:18:39 +0800 Subject: [PATCH] fix(neuron-ui): add an auto match on speed of price from 20 to 40 --- .../neuron-ui/src/components/TransactionFeePanel/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/neuron-ui/src/components/TransactionFeePanel/index.tsx b/packages/neuron-ui/src/components/TransactionFeePanel/index.tsx index d7df103bc6..948b395ce2 100644 --- a/packages/neuron-ui/src/components/TransactionFeePanel/index.tsx +++ b/packages/neuron-ui/src/components/TransactionFeePanel/index.tsx @@ -16,6 +16,9 @@ const calculateSpeed = (price: number) => { if (price >= 40) { return '60' } + if (price >= 20) { + return '30' + } return '0' }