Skip to content

Commit 2caddfb

Browse files
committed
fix(dashboard): correct date range for MAU
1 parent 7a9713e commit 2caddfb

File tree

1 file changed

+5
-1
lines changed
  • apps/dashboard/src/app/(dashboard)/dashboard/connect/in-app-wallets/[clientId]

1 file changed

+5
-1
lines changed

apps/dashboard/src/app/(dashboard)/dashboard/connect/in-app-wallets/[clientId]/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ export default async function Page(props: {
4242

4343
const monthlyStatsPromise = getInAppWalletUsage({
4444
clientId,
45-
from: new Date(new Date().getFullYear(), new Date().getMonth(), 1),
45+
from: new Date(
46+
new Date().getFullYear(),
47+
new Date().getMonth(),
48+
new Date().getDate() - 30,
49+
),
4650
to: new Date(),
4751
period: "month",
4852
});

0 commit comments

Comments
 (0)