From 349849b2a9828195378f6915a531f1d967910b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=A1=D0=BE=D0=B1=D0=BE?= =?UTF-8?q?=D0=BB=D0=B5=D0=B2?= Date: Mon, 1 Jul 2019 16:52:18 +0300 Subject: [PATCH] Refactored frontend --- frontend/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/index.js b/frontend/index.js index db2a69a..8fba713 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -430,7 +430,6 @@ $('button').click(function () { function challengeEthereum(id, data) { console.log('Challenging task N ' + data + ' on Ethereum!'); contractInstance.challenge.sendTransaction(data, function (err, txHash) { - $('#challenge-' + id).text('See tx on Etherscan!'); - $('#challenge-' + id).attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')"); + $('#challenge-' + id).text('See tx on Etherscan!').attr("onclick", "window.open('https://rinkeby.etherscan.io/tx/" + txHash + "')"); }); }