From 12742fa9e69f8bad4ad2a8b1bab43e71b281076d Mon Sep 17 00:00:00 2001 From: Ayrat Badykov Date: Tue, 9 Jul 2019 12:35:35 +0300 Subject: [PATCH] fix js style --- .../assets/js/pages/verification_form.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/apps/block_scout_web/assets/js/pages/verification_form.js b/apps/block_scout_web/assets/js/pages/verification_form.js index 92d2b8e21a..28a654d999 100644 --- a/apps/block_scout_web/assets/js/pages/verification_form.js +++ b/apps/block_scout_web/assets/js/pages/verification_form.js @@ -46,14 +46,14 @@ const elements = { }, '[data-page="contract-verification"]': { render ($el, state) { - if (state.newForm) { - $el.replaceWith(state.newForm) - $('button[data-button-loading="animation"]').click(event => { - $('#loading').removeClass('d-none') - }) - return $el - } - return $el + if (state.newForm) { + $el.replaceWith(state.newForm) + $('button[data-button-loading="animation"]').click(event => { + $('#loading').removeClass('d-none') + }) + return $el + } + return $el } } } @@ -83,7 +83,7 @@ if ($contractVerificationPage.length) { msg: humps.camelizeKeys(msg) })) - $('button[data-button-loading="animation"]').click(event => { - $('#loading').removeClass('d-none') - }) + $('button[data-button-loading="animation"]').click(event => { + $('#loading').removeClass('d-none') + }) }