From 7b03b48aebf8c54c7c2d8161b99d01387ba93c5c Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Wed, 7 Jan 2026 13:45:54 +0800 Subject: [PATCH 1/2] Fixed display of updated name --- src/pages/AssessorPage/Assessor.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/pages/AssessorPage/Assessor.tsx b/src/pages/AssessorPage/Assessor.tsx index 47bf2bc..ec55703 100644 --- a/src/pages/AssessorPage/Assessor.tsx +++ b/src/pages/AssessorPage/Assessor.tsx @@ -546,7 +546,15 @@ export default () => { setConfigEncPassword(response) } - const closeConfig = () => { + const updateDisplayName = async () => { + const response = await getApiMulti('get-employeename', employeeId()) + console.log(response.result) + sessionStorage.setItem('name', response.result) + setEmployeeName(response.result) + } + + const closeConfig = async () => { + await updateDisplayName() setConfigNotification(false) setOpenConfig(false) @@ -1060,27 +1068,23 @@ export default () => { - {/*
+
- - Approved + Account Updated - -

{approvedApplication()}

-
- Click anywhere to proceed + Click anywhere to close
-
*/} +
) } From 8761e6351f6cc2005e8600ba1240b29094e7aa92 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Wed, 7 Jan 2026 13:46:03 +0800 Subject: [PATCH 2/2] Updated main page --- src/pages/MainPage/Main.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/pages/MainPage/Main.tsx b/src/pages/MainPage/Main.tsx index f690ea7..b4ee49e 100644 --- a/src/pages/MainPage/Main.tsx +++ b/src/pages/MainPage/Main.tsx @@ -375,11 +375,18 @@ export default () => { navigate('/') } + const updateHeadName = async () => { + const response = await getApi('get-head') + + setEmployeeName(response!) + } + // const gotoProfile = () => { // navigate('/profile') // } - const closeConfig = () => { + const closeConfig = async () => { + await updateHeadName() setConfigNotification(false) setOpenConfig(false) @@ -808,17 +815,13 @@ export default () => { - - Approved + Account Updated - -

{approvedApplication()}

-
- Click anywhere to proceed + Click anywhere to close