File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
(app)/(dashboard)/(chain)/[chain_id]/(chainPage)/components/client Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ export function PayModalButton(props: {
42
42
theme = { getSDKTheme ( theme === "dark" ? "dark" : "light" ) }
43
43
className = "!w-auto"
44
44
payOptions = { {
45
- onPurchaseSuccess ( info ) {
45
+ // biome-ignore lint/suspicious/noExplicitAny: false positive
46
+ onPurchaseSuccess ( info : any ) {
46
47
if (
47
48
info . type === "crypto" &&
48
49
info . status . status !== "NOT_FOUND"
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export function PayPageEmbed({
63
63
onPurchaseSuccess : ( result ) => {
64
64
if ( ! redirectUri ) return ;
65
65
const url = new URL ( redirectUri ) ;
66
- switch ( result . type ) {
66
+ switch ( result ? .type ) {
67
67
case "crypto" : {
68
68
url . searchParams . set ( "status" , result . status . status ) ;
69
69
if (
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ export const MismatchButton = forwardRef<
293
293
payOptions = { {
294
294
onPurchaseSuccess ( info ) {
295
295
if (
296
- info . type === "crypto" &&
296
+ info ? .type === "crypto" &&
297
297
info . status . status !== "NOT_FOUND"
298
298
) {
299
299
trackEvent ( {
@@ -308,7 +308,7 @@ export const MismatchButton = forwardRef<
308
308
}
309
309
310
310
if (
311
- info . type === "fiat" &&
311
+ info ? .type === "fiat" &&
312
312
info . status . status !== "NOT_FOUND"
313
313
) {
314
314
trackEvent ( {
@@ -405,8 +405,8 @@ function NoFundsDialogContent(props: {
405
405
client = { props . client }
406
406
/>
407
407
) : chainWithServiceInfoQuery . data . services . find (
408
- ( x ) => x . enabled && x . service === "pay" ,
409
- ) ? (
408
+ ( x ) => x . enabled && x . service === "pay" ,
409
+ ) ? (
410
410
// pay case
411
411
< Button
412
412
variant = "primary"
@@ -416,7 +416,7 @@ function NoFundsDialogContent(props: {
416
416
Buy Funds
417
417
</ Button >
418
418
) : // no funds options available
419
- null }
419
+ null }
420
420
</ div >
421
421
) }
422
422
</ div >
You can’t perform that action at this time.
0 commit comments