Skip to content

Commit 2247cdc

Browse files
committed
fix
1 parent e593168 commit 2247cdc

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/app/api/pay/[token]/crypto-status/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export async function GET(
5151
);
5252
}
5353

54+
// result.invoice is validated but we use token to query payment directly
5455
// Get the payment record with crypto details
5556
const payment = await prisma.payment.findFirst({
5657
where: {

src/app/dashboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function DashboardPage() {
7272

7373
<StatCard
7474
title="交易笔数"
75-
value={stats?.periodAggregations?.reduce((sum) => sum + 1, 0).toString() || '0'}
75+
value={stats?.periodAggregations?.length.toString() || '0'}
7676
subtitle="本期间"
7777
color="cyan"
7878
icon={

0 commit comments

Comments
 (0)