From dd951d65e1790bffd42362af2729c3d945b3a5d5 Mon Sep 17 00:00:00 2001 From: soufiane Date: Tue, 18 Nov 2025 01:09:13 +0100 Subject: [PATCH] fix: handle undefined updatedAt in profile page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add null check for user.updatedAt before passing to formatDate function. The User type defines updatedAt as optional (string | undefined), so we need to handle the undefined case to prevent TypeScript compilation errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- app/profil/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/profil/page.tsx b/app/profil/page.tsx index d5ce5db..7ed235f 100644 --- a/app/profil/page.tsx +++ b/app/profil/page.tsx @@ -228,7 +228,7 @@ export default function ProfilePage() { Dernière modification

- {formatDate(user.updatedAt)} + {user.updatedAt ? formatDate(user.updatedAt) : 'N/A'}