diff --git a/static/scripts/rewards/render-transaction/read-claim-data-from-url.ts b/static/scripts/rewards/render-transaction/read-claim-data-from-url.ts index c7ace425..a9ac5ae8 100644 --- a/static/scripts/rewards/render-transaction/read-claim-data-from-url.ts +++ b/static/scripts/rewards/render-transaction/read-claim-data-from-url.ts @@ -28,7 +28,7 @@ export async function readClaimDataFromUrl(app: AppState) { if (!base64encodedTxData) { // No claim data found setClaimMessage({ type: "Notice", message: `No claim data found.` }); - table.setAttribute(`data-make-claim`, "error"); + table.setAttribute(`data-make-claim`, "empty"); return; } @@ -125,7 +125,7 @@ function decodeClaimData(base64encodedTxData: string): Permit[] { } catch (error) { console.error(error); setClaimMessage({ type: "Error", message: `Invalid claim data passed in URL` }); - table.setAttribute(`data-make-claim`, "error"); + table.setAttribute(`data-make-claim`, "empty"); throw error; } } diff --git a/static/scripts/rewards/render-transaction/set-claim-message.ts b/static/scripts/rewards/render-transaction/set-claim-message.ts index 34602d42..ea464aef 100644 --- a/static/scripts/rewards/render-transaction/set-claim-message.ts +++ b/static/scripts/rewards/render-transaction/set-claim-message.ts @@ -1,6 +1,4 @@ export function setClaimMessage({ type, message }: { type: string; message: string }): void { - const claimMessageType = document.querySelector(`.receipt > .head .row`) as Element; - const claimMessageBody = document.querySelector(`.receipt > .head .cell`) as Element; - claimMessageType.innerHTML = `