From 23eb668ef072f5f2c90b46385800a4263dbb15c8 Mon Sep 17 00:00:00 2001 From: Manuel Gellfart Date: Mon, 24 Jun 2024 16:59:14 +0200 Subject: [PATCH] fix: show latest campaign update (#187) --- src/components/Points/ActivityPointsFeed.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Points/ActivityPointsFeed.tsx b/src/components/Points/ActivityPointsFeed.tsx index 19799d3..c28f3e5 100644 --- a/src/components/Points/ActivityPointsFeed.tsx +++ b/src/components/Points/ActivityPointsFeed.tsx @@ -143,7 +143,7 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => { <> - Last drop + Your last drop {latestUpdate && ( {formatDate(new Date(latestUpdate.startDate))} - {formatDate(new Date(latestUpdate.endDate))} @@ -184,7 +184,10 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => { )} - Your points are updated weekly. + Points are updated weekly. + + + Last update: {formatDate(new Date(campaign.lastUpdated))}