From 3678054931b424087619966cdac40b839494b335 Mon Sep 17 00:00:00 2001 From: MananTank Date: Fri, 30 May 2025 21:25:13 +0000 Subject: [PATCH] Dashboard: Fix TS errors (#7235) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on updating the `clientId` prop being passed to the `PayEmbedFTUX` component in the `PayAnalytics.tsx` file. ### Detailed summary - Changed the `clientId` prop from `props.clientId` to `props.projectClientId` in the return statement of the `PayEmbedFTUX` component when both `hasVolume` and `hasWallet` are false. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit - **Bug Fixes** - Corrected an issue where the wrong client ID was passed to the PayEmbedFTUX component, ensuring accurate display and functionality. --- apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx b/apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx index 02f01ab2ab1..83bc9028464 100644 --- a/apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx +++ b/apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx @@ -60,7 +60,7 @@ export async function PayAnalytics(props: { const hasVolume = volumeData.some((d) => d.amountUsdCents > 0); const hasWallet = walletData.some((d) => d.count > 0); if (!hasVolume && !hasWallet) { - return ; + return ; } return (