Skip to content

Commit 74717d7

Browse files
committed
fix dashboard build
1 parent 00c4f27 commit 74717d7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client/PayModal.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ export function PayModalButton(props: {
4242
theme={getSDKTheme(theme === "dark" ? "dark" : "light")}
4343
className="!w-auto"
4444
payOptions={{
45-
onPurchaseSuccess(info) {
45+
// biome-ignore lint/suspicious/noExplicitAny: false positive
46+
onPurchaseSuccess(info: any) {
4647
if (
4748
info.type === "crypto" &&
4849
info.status.status !== "NOT_FOUND"

apps/dashboard/src/app/pay/components/client/PayPageEmbed.client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function PayPageEmbed({
6363
onPurchaseSuccess: (result) => {
6464
if (!redirectUri) return;
6565
const url = new URL(redirectUri);
66-
switch (result.type) {
66+
switch (result?.type) {
6767
case "crypto": {
6868
url.searchParams.set("status", result.status.status);
6969
if (

apps/dashboard/src/components/buttons/MismatchButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const MismatchButton = forwardRef<
293293
payOptions={{
294294
onPurchaseSuccess(info) {
295295
if (
296-
info.type === "crypto" &&
296+
info?.type === "crypto" &&
297297
info.status.status !== "NOT_FOUND"
298298
) {
299299
trackEvent({
@@ -308,7 +308,7 @@ export const MismatchButton = forwardRef<
308308
}
309309

310310
if (
311-
info.type === "fiat" &&
311+
info?.type === "fiat" &&
312312
info.status.status !== "NOT_FOUND"
313313
) {
314314
trackEvent({

0 commit comments

Comments
 (0)