From 67d0e9862cbd7532328b5ff72439277eeec2a60d Mon Sep 17 00:00:00 2001 From: Aleksandar Petkov Date: Sun, 24 Mar 2024 13:08:11 +0200 Subject: [PATCH] DonorsAndDonations.tsx: Use createdAt field, to show when donation was created (#1749) --- src/components/client/campaigns/DonorsAndDonations.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/client/campaigns/DonorsAndDonations.tsx b/src/components/client/campaigns/DonorsAndDonations.tsx index 05dad12d2..ceff72601 100644 --- a/src/components/client/campaigns/DonorsAndDonations.tsx +++ b/src/components/client/campaigns/DonorsAndDonations.tsx @@ -84,7 +84,7 @@ export default function DonorsAndDonations({ donations }: { donations: CampaignD {donationsToShow && donationsToShow.length !== 0 ? ( - donationsToShow.map(({ type, metadata, person, amount, updatedAt, currency }, key) => ( + donationsToShow.map(({ type, metadata, person, amount, createdAt, currency }, key) => ( {moneyPublic(amount, currency)} | - {formatDistanceStrict(parseISO(updatedAt), new Date(), { + {formatDistanceStrict(parseISO(createdAt), new Date(), { locale: i18n?.language == 'bg' ? bg : enUS, addSuffix: true, })}