Fix dashboard: Use user object for repo links to avoid undefined error
swadhinbiswas committed 10 months ago
c10c15d
1 parent ae6d1b3
commit c10c15d
1 file changed
+2 -2
Showing 1 changed file+2-2
▼src/pages/dashboard.astro
+2-2
| @@ -62,7 +62,7 @@ const activities = []; | ||
62 | 62 | { |
63 | 63 | repos.map((repo) => ( |
64 | 64 | <a |
65 | - href={`/${repo.owner.username}/${repo.name}`} | |
65 | + href={`/${user.username}/${repo.name}`} | |
66 | 66 | class="flex items-center gap-2 px-2 py-1.5 text-sm text-muted-foreground hover:text-foreground hover:bg-accent rounded-md transition-colors" |
67 | 67 | > |
68 | 68 | <Book class="h-4 w-4" /> |
| @@ -134,7 +134,7 @@ const activities = []; | ||
134 | 134 | <div class="space-y-1"> |
135 | 135 | <CardTitle class="text-base"> |
136 | 136 | <a |
137 | - href={`/${repo.owner.username}/${repo.name}`} | |
137 | + href={`/${user.username}/${repo.name}`} | |
138 | 138 | class="hover:underline flex items-center gap-2" |
139 | 139 | > |
140 | 140 | <Book class="h-4 w-4 text-muted-foreground" /> |
141 | 141 | |