From c1d0b7ce410de0b178d245a99c339220b63d903f Mon Sep 17 00:00:00 2001 From: Quy_FE Date: Thu, 24 Apr 2025 17:22:46 +0700 Subject: [PATCH] =?UTF-8?q?Feat=20:=20s=E1=BB=ADa=20t=C3=AAn=20c=E1=BB=A7a?= =?UTF-8?q?=20hi=E1=BB=87u=20tr=C6=B0=E1=BB=9Fng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/_components/Header/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/_components/Header/index.js b/src/_components/Header/index.js index 43db49e..f95383f 100644 --- a/src/_components/Header/index.js +++ b/src/_components/Header/index.js @@ -7,7 +7,9 @@ export default function Header({ icon, title, subtitles = [] }) { const { fullname, organization_name, role } = authentication?.user || {}; const hasFullName = fullname || organization_name; - const fullName = role === "organization_admin" ? `Hiệu trưởng ${hasFullName}` : fullname; + const fullName = role === "organization_admin" + ? `${organization_name && !organization_name.toLowerCase().includes('giáo dục') ? 'Hiệu trưởng ' : ''}${hasFullName}` + : fullname; return (