From 68914b6406b697e99c9a007af703fa0ab76e9d2d Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Fri, 22 Nov 2024 13:57:15 +0800 Subject: [PATCH] updated contactPerson with empty string when user is dummy user --- src/pages/PublicNotice/ApplyForm/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/PublicNotice/ApplyForm/index.js b/src/pages/PublicNotice/ApplyForm/index.js index 74cf7fd..882253a 100644 --- a/src/pages/PublicNotice/ApplyForm/index.js +++ b/src/pages/PublicNotice/ApplyForm/index.js @@ -17,7 +17,11 @@ import { lazy } from 'react'; const LoadingComponent = Loadable(lazy(() => import('../../extra-pages/LoadingComponent'))); const PublicNoticeApplyForm = Loadable(lazy(() => import('./PublicNoticeApplyForm'))); - +import { + // isORGLoggedIn, + isDummyLoggedIn, + // isCreditorLoggedIn +} from "utils/Utils"; // ==============================|| DASHBOARD - DEFAULT ||============================== // const ApplyForm = () => { @@ -45,6 +49,9 @@ const ApplyForm = () => { response["faxNumber"] = response?.contactFaxNo?.faxNumber; response["issueId"] = response?.gazetteIssueList[0].id; response["remarks"] = ""; + if (isDummyLoggedIn()){ + response["contactPerson"] = ""; + } var selection = []; for (var i = 0; i < response?.gazetteIssueList?.length; i++) {