Skip to content

Commit 83e4fc2

Browse files
chore: resolve merge conflicts
2 parents 03eafe3 + b70f184 commit 83e4fc2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/small-boxes-grow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Add support for filtering fiat payment providers in PayEmbed

packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat/FiatScreenContent.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useState } from "react";
2+
import { getErrorMessage } from "src/react/web/utils/errors.js";
23
import { trackPayEvent } from "../../../../../../../analytics/track/pay.js";
34
import type { Chain } from "../../../../../../../chains/types.js";
45
import type { ThirdwebClient } from "../../../../../../../client/client.js";
@@ -11,7 +12,6 @@ import type { Theme } from "../../../../../../core/design-system/index.js";
1112
import type { PayUIOptions } from "../../../../../../core/hooks/connection/ConnectButtonProps.js";
1213
import { useBuyWithFiatQuote } from "../../../../../../core/hooks/pay/useBuyWithFiatQuote.js";
1314
import { PREFERRED_FIAT_PROVIDER_STORAGE_KEY } from "../../../../../../core/utils/storage.js";
14-
import { getErrorMessage } from "../../../../../utils/errors.js";
1515
import {
1616
Drawer,
1717
DrawerOverlay,
@@ -106,8 +106,8 @@ export function FiatScreenContent(props: {
106106
isTestMode: buyWithFiatOptions?.testMode,
107107
purchaseData: props.payOptions.purchaseData,
108108
fromAddress: payer.account.address,
109-
preferredProvider: preferredProvider,
110109
paymentLinkId: paymentLinkId,
110+
preferredProvider: preferredProvider ?? "COINBASE",
111111
}
112112
: undefined,
113113
);

0 commit comments

Comments
 (0)