Skip to content

Commit

Permalink
fix(faucet): page keeps loading even if tx was finished
Browse files Browse the repository at this point in the history
  • Loading branch information
jlehtimaki committed Sep 3, 2024
1 parent 80aa21f commit 03e9c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/faucet/js/tx.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function startPolling() {
.then((response) => response.text())
.then((html) => {
document.getElementById("tx-status").innerHTML = html;
if (html.includes('id="tx-result"')) {
if (html.includes('class="tx-result"')) {
clearInterval(pollingInterval);
}
});
Expand Down

0 comments on commit 03e9c79

Please sign in to comment.