diff --git a/backend/trcustoms/awards/serializers.py b/backend/trcustoms/awards/serializers.py index d72673f1..e034f1f7 100644 --- a/backend/trcustoms/awards/serializers.py +++ b/backend/trcustoms/awards/serializers.py @@ -14,6 +14,7 @@ class Meta: model = UserAward fields = [ "created", + "last_updated", "position", "code", "title", diff --git a/frontend/src/components/modals/AwardModal/index.tsx b/frontend/src/components/modals/AwardModal/index.tsx index d1ae1b80..48943ae6 100644 --- a/frontend/src/components/modals/AwardModal/index.tsx +++ b/frontend/src/components/modals/AwardModal/index.tsx @@ -33,7 +33,9 @@ const AwardModal = ({ isActive, onIsActiveChange, award }: AwardModalProps) => { {reprPercentage(award.rarity / 100)}
Awarded:
-
{formatDate(award.created)}
+
+ {formatDate(award.last_updated ?? award.created)} +
diff --git a/frontend/src/services/UserService.ts b/frontend/src/services/UserService.ts index 13218e31..9a6bc7a2 100644 --- a/frontend/src/services/UserService.ts +++ b/frontend/src/services/UserService.ts @@ -80,6 +80,7 @@ interface UserDetails extends UserListing { interface UserAward { created: string; + last_updated: string; code: string; title: string; description: string;