File tree 2 files changed +7
-2
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Add support for filtering fiat payment providers in PayEmbed
Original file line number Diff line number Diff line change 1
1
import { useState } from "react" ;
2
+ import { getErrorMessage } from "src/react/web/utils/errors.js" ;
2
3
import { trackPayEvent } from "../../../../../../../analytics/track/pay.js" ;
3
4
import type { Chain } from "../../../../../../../chains/types.js" ;
4
5
import type { ThirdwebClient } from "../../../../../../../client/client.js" ;
@@ -11,7 +12,6 @@ import type { Theme } from "../../../../../../core/design-system/index.js";
11
12
import type { PayUIOptions } from "../../../../../../core/hooks/connection/ConnectButtonProps.js" ;
12
13
import { useBuyWithFiatQuote } from "../../../../../../core/hooks/pay/useBuyWithFiatQuote.js" ;
13
14
import { PREFERRED_FIAT_PROVIDER_STORAGE_KEY } from "../../../../../../core/utils/storage.js" ;
14
- import { getErrorMessage } from "../../../../../utils/errors.js" ;
15
15
import {
16
16
Drawer ,
17
17
DrawerOverlay ,
@@ -106,8 +106,8 @@ export function FiatScreenContent(props: {
106
106
isTestMode : buyWithFiatOptions ?. testMode ,
107
107
purchaseData : props . payOptions . purchaseData ,
108
108
fromAddress : payer . account . address ,
109
- preferredProvider : preferredProvider ,
110
109
paymentLinkId : paymentLinkId ,
110
+ preferredProvider : preferredProvider ?? "COINBASE" ,
111
111
}
112
112
: undefined ,
113
113
) ;
You can’t perform that action at this time.
0 commit comments