diff --git a/static/scripts/shared/api.ts b/static/scripts/shared/api.ts index e8c59609..24ea4f4d 100644 --- a/static/scripts/shared/api.ts +++ b/static/scripts/shared/api.ts @@ -60,7 +60,7 @@ export async function postOrder(params: PostOrderParams) { return (await response.json()) as ReloadlyOrderResponse; } -export async function getReedemCode(params: GetRedeemCodeParams) { +export async function getRedeemCode(params: GetRedeemCodeParams) { const response = await fetch( `${getApiBaseUrl()}/get-redeem-code?transactionId=${params.transactionId}&signedMessage=${params.signedMessage}&wallet=${params.wallet}&permitSig=${params.permitSig}`, { diff --git a/static/scripts/ubiquity-dollar/gift-card.ts b/static/scripts/ubiquity-dollar/gift-card.ts index 0bc9ed6b..b4595530 100644 --- a/static/scripts/ubiquity-dollar/gift-card.ts +++ b/static/scripts/ubiquity-dollar/gift-card.ts @@ -14,7 +14,7 @@ import { app } from "./app-state"; import { ubiquityDollarAllowedChainIds } from "../../../shared/constants"; import { getGiftCardHtml } from "../rewards/gift-cards/gift-card"; import { showTransactionHistory } from "./transaction-history"; -import { getOrder, postOrder, getBestCard, getReedemCode } from "../shared/api"; +import { getOrder, postOrder, getBestCard, getRedeemCode } from "../shared/api"; import { toaster } from "../rewards/toaster"; const loaderAttribute = "data-loading"; @@ -247,7 +247,7 @@ export function attachRevealAction(transaction: OrderTransaction) { } async function revealRedeemCode(transactionId: number, wallet: string, txHash: string, signedMessage: string) { - const redeemCodes = await getReedemCode({ + const redeemCodes = await getRedeemCode({ transactionId: transactionId, signedMessage: signedMessage, wallet: wallet,