Skip to content

Commit

Permalink
Fix spotlight on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 16, 2024
1 parent b6a23b9 commit 442603d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/charterafrica/src/lib/data/common/processPageIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ const processSpotlight = (page, api, context) => {
const { item: itemData, ...rest } = item;
return {
...rest,
category: rest?.category || null,
item: {
...itemData,
image: {
src: itemData.image.url,
alt: itemData.image.alt,
url: itemData.image.url,
},
date: new Date(itemData.date).toLocaleDateString(locale, {
year: "numeric",
Expand Down

0 comments on commit 442603d

Please sign in to comment.