From 4b30fb0b3113b5383f957cefe0ed9dddfcdec271 Mon Sep 17 00:00:00 2001 From: Oskar Date: Tue, 27 Apr 2021 19:23:36 +0200 Subject: [PATCH] Increase hero input debounce to 500 --- .../Home/Hero/ExchangeWidget/CoinInput/CoinInput.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Home/Hero/ExchangeWidget/CoinInput/CoinInput.js b/src/components/Home/Hero/ExchangeWidget/CoinInput/CoinInput.js index b5eda2669..1dee4dea4 100644 --- a/src/components/Home/Hero/ExchangeWidget/CoinInput/CoinInput.js +++ b/src/components/Home/Hero/ExchangeWidget/CoinInput/CoinInput.js @@ -66,6 +66,7 @@ class CoinInput extends PureComponent { }; fetchAmounts = debounce(value => { + console.log('fetch amounts'); const pair = `${this.props.selectedCoin.receive}${this.props.selectedCoin.deposit}`; const data = { pair, @@ -77,7 +78,7 @@ class CoinInput extends PureComponent { if (value.length) { this.props.fetchPrice(data); } - }, 600); + }, 500); focus = () => { if (this.props.type === 'deposit') { @@ -96,7 +97,6 @@ class CoinInput extends PureComponent { if (updatedAmount && updatedAmount !== '...' && updatedAmount !== this.state.value) this.setState({ value: updatedAmount }); } }; - render() { return (