Skip to content

Commit f1cddd6

Browse files
gregfromstlclaude
andcommitted
Fix: Display latest value in PayNewCustomers component
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 7ede361 commit f1cddd6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export function PayNewCustomers(props: {
7474
<div className="mb-5 flex items-center gap-3">
7575
<SkeletonContainer
7676
loadedData={
77-
isEmpty
78-
? "NA"
79-
: graphData.reduce((acc, curr) => acc + curr.value, 0)
77+
isEmpty ? "NA" : graphData[graphData.length - 1]?.value || 0
8078
}
8179
skeletonData={100}
8280
render={(v) => {

0 commit comments

Comments
 (0)