From eb1f2ca726603d1c2c7d9c995a34cdc3596f69d5 Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Tue, 9 Apr 2024 16:02:46 +0530 Subject: [PATCH] feat: display profile name in navbar if available Display profile name if set, else fallback to username --- .../ExpandedHeader/AuthenticatedUserDropdown.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx b/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx index e0751bb3..25fadef0 100644 --- a/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx +++ b/src/containers/LearnerDashboardHeader/ExpandedHeader/AuthenticatedUserDropdown.jsx @@ -25,7 +25,7 @@ export const AuthenticatedUserDropdown = () => { className="p-4" > - {authenticatedUser.username} + {authenticatedUser.name || authenticatedUser.username}