Skip to content

Commit

Permalink
i love you corban
Browse files Browse the repository at this point in the history
  • Loading branch information
irem-naz authored and corbanvilla committed Sep 22, 2024
1 parent 967af3a commit 06b2606
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/archives/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const IssueCard = ({ issue }: { issue: IssueArchive }) => {
// fill
width={300}
height={300}
alt={issue.imageUrl}
alt={issue.imageUrl || ARTICLE_DEFAULT_IMAGE}
className="aspect-[16/9] object-cover"
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
/>
Expand Down
4 changes: 2 additions & 2 deletions db/queries/issues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ type Issue = {
issueNumber: number;
issueName: string;
publishedAt: string | null;
imageUrl: string;
imageUrl?: string | null;
}

export type IssueArchive = {
issueNumber: number;
issueName: string;
publishedAt: string | null;
imageUrl: string;
imageUrl?: string | null;
}
// NOTE - Caching is per request
export const getLatestPublishedIssue = wrapCache(async () => {
Expand Down

0 comments on commit 06b2606

Please sign in to comment.