From bcda477080b2e7b3495c1fbb64e06dc09f3300c8 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Fri, 16 Oct 2020 15:51:50 +0300 Subject: [PATCH] Fix tokens dropdown appearance --- apps/block_scout_web/assets/js/pages/address.js | 2 +- apps/block_scout_web/assets/js/pages/admin/tasks.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/block_scout_web/assets/js/pages/address.js b/apps/block_scout_web/assets/js/pages/address.js index 5e3f0570c2..2ed9ab2090 100644 --- a/apps/block_scout_web/assets/js/pages/address.js +++ b/apps/block_scout_web/assets/js/pages/address.js @@ -72,7 +72,7 @@ export function reducer (state = initialState, action) { let fetchedTokenBalanceBlockNumber = 0 function loadTokenBalance (blockNumber) { - if (blockNumber > fetchedTokenBalanceBlockNumber) { + if (blockNumber >= fetchedTokenBalanceBlockNumber) { fetchedTokenBalanceBlockNumber = blockNumber setTimeout(loadTokenBalanceDropdown, 1000) } diff --git a/apps/block_scout_web/assets/js/pages/admin/tasks.js b/apps/block_scout_web/assets/js/pages/admin/tasks.js index 602e81c8b4..146333afba 100644 --- a/apps/block_scout_web/assets/js/pages/admin/tasks.js +++ b/apps/block_scout_web/assets/js/pages/admin/tasks.js @@ -14,7 +14,7 @@ const runTask = (event) => { $loading.show() $.get(apiPath) - .done(response => { + .done(_response => { $successMessage.show() $loading.hide() })