From cba5b51e801eea74594d50b34fb7019b9f8692ee Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Sat, 7 Sep 2024 05:09:00 +0100 Subject: [PATCH] Update erc20-permit.ts --- static/scripts/rewards/web3/erc20-permit.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/scripts/rewards/web3/erc20-permit.ts b/static/scripts/rewards/web3/erc20-permit.ts index d5522eee..fcce270d 100644 --- a/static/scripts/rewards/web3/erc20-permit.ts +++ b/static/scripts/rewards/web3/erc20-permit.ts @@ -137,9 +137,7 @@ export function claimErc20PermitHandlerWrapper(app: AppState) { const tx: TransactionResponse = await transferFromPermit(permit2Contract, app); if (!tx) return; - viewClaimButton.onclick = () => { - window.open(`https://blockscan.com/tx/${tx.hash}`, "_blank"); - }; + viewClaimButton.onclick = () => window.open(`https://blockscan.com/tx/${tx.hash}`, "_blank"); buttonController.showViewClaim(); buttonController.hideLoader();