From 148eceb5eb748d85025191190990f74a7b0844e9 Mon Sep 17 00:00:00 2001 From: schmanu Date: Mon, 24 Jun 2024 16:16:27 +0200 Subject: [PATCH 1/2] fix: show latest campaign update --- src/components/Points/ActivityPointsFeed.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Points/ActivityPointsFeed.tsx b/src/components/Points/ActivityPointsFeed.tsx index 19799d3..b9a7a1a 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))} @@ -186,6 +186,9 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => { Your points are updated weekly. + + Last update: {formatDate(new Date(campaign.lastUpdated))} + From 68e91e844841f64612aa14df170f0176aee29df9 Mon Sep 17 00:00:00 2001 From: schmanu Date: Mon, 24 Jun 2024 16:56:34 +0200 Subject: [PATCH 2/2] fix: rephrase --- src/components/Points/ActivityPointsFeed.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Points/ActivityPointsFeed.tsx b/src/components/Points/ActivityPointsFeed.tsx index b9a7a1a..c28f3e5 100644 --- a/src/components/Points/ActivityPointsFeed.tsx +++ b/src/components/Points/ActivityPointsFeed.tsx @@ -184,7 +184,7 @@ export const ActivityPointsFeed = ({ campaign }: { campaign?: Campaign }) => { )} - Your points are updated weekly. + Points are updated weekly. Last update: {formatDate(new Date(campaign.lastUpdated))}