Skip to content

Commit 3678054

Browse files
committed
Dashboard: Fix TS errors (#7235)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Corrected an issue where the wrong client ID was passed to the PayEmbedFTUX component, ensuring accurate display and functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 196cb54 commit 3678054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dashboard/src/components/pay/PayAnalytics/PayAnalytics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function PayAnalytics(props: {
6060
const hasVolume = volumeData.some((d) => d.amountUsdCents > 0);
6161
const hasWallet = walletData.some((d) => d.count > 0);
6262
if (!hasVolume && !hasWallet) {
63-
return <PayEmbedFTUX clientId={props.clientId} />;
63+
return <PayEmbedFTUX clientId={props.projectClientId} />;
6464
}
6565

6666
return (

0 commit comments

Comments
 (0)