diff --git a/src/app/(app)/dashboard/page.tsx b/src/app/(app)/dashboard/page.tsx
index e820240..c5896a1 100644
--- a/src/app/(app)/dashboard/page.tsx
+++ b/src/app/(app)/dashboard/page.tsx
@@ -27,9 +27,8 @@ export default async function DashboardPage() {
return ;
}
- const {
- data: { user },
- } = await sb.auth.getUser();
+ const { data } = await sb.auth.getUser();
+ const user = data?.user;
if (!user) redirect('/');
const service = getServiceSupabase();
@@ -219,12 +218,18 @@ export default async function DashboardPage() {
CURRENT STREAK
-
- {(streak ?? 0).toString().padStart(2, '0')}
-
-
- DAYS 🔥
-
+ {streak && streak > 0 ? (
+ <>
+
+ {streak.toString().padStart(2, '0')}
+
+
+ DAYS 🔥
+
+ >
+ ) : (
+ NO STREAK
+ )}