Skip to content

Commit d03f8fe

Browse files
committed
ui: remove reset
1 parent 072f34d commit d03f8fe

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

ui/src/lib/components/TransactionModal.svelte

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@
1313
.replace(/\\\\/g, '\\')
1414
}
1515
16-
function handleDone() {
17-
transactionStore.reset()
18-
window.location.href = window.location.pathname
19-
}
2016
</script>
2117

2218
<Modal
@@ -71,9 +67,7 @@
7167
href={`https://sepolia.etherscan.io/tx/${$transactionStore.hash}`}
7268
target="_blank">View transaction on Etherscan</a
7369
>
74-
{#if isLockSuccess}
75-
<Button on:click={handleDone}>Done</Button>
76-
{:else}
70+
{#if !isLockSuccess}
7771
<Button on:click={() => transactionStore.reset()}>Close</Button>
7872
{/if}
7973
{/if}

0 commit comments

Comments
 (0)