From 608348910fce7c69097a4307ea3a392f9020884d Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Fri, 7 Feb 2025 12:45:30 +0000 Subject: [PATCH] rep defect 46 --- components/case/representation/index.js | 4 ++-- .../case/representation/representationCompleteSubmit.js | 7 ++++++- components/newappeal/buildsection.js | 2 +- i18n.js | 7 ++++++- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/components/case/representation/index.js b/components/case/representation/index.js index f4134a93..5f290696 100644 --- a/components/case/representation/index.js +++ b/components/case/representation/index.js @@ -873,7 +873,7 @@ let MakeRepresentation = (props) => { useSaveStatus && router.replace( router.locale != "en" - ? router.locale + "/myportal" + ? "/" + router.locale + "/fymhorth" : "/myportal" )) : useSaveStatus @@ -884,7 +884,7 @@ let MakeRepresentation = (props) => { uploadRepresentationFiles(values), router.replace( router.locale != "en" - ? router.locale + "/myportal" + ? "/" + router.locale + "/fymhorth" : "/myportal" )) : Object.assign(values, { diff --git a/components/case/representation/representationCompleteSubmit.js b/components/case/representation/representationCompleteSubmit.js index 5be1e836..52bc71c8 100644 --- a/components/case/representation/representationCompleteSubmit.js +++ b/components/case/representation/representationCompleteSubmit.js @@ -220,7 +220,12 @@ const RepCompleteSubmit = (props) => { function showRepsEnded(endDate) { let date = new Date(); date = new Date(date.toDateString()); - const end = new Date(endDate); + let end = new Date(endDate); + end.setUTCHours(23); + end.setUTCMinutes(59); + end.setUTCSeconds(59); + end.toISOString(); + return end > date ? false : true; } diff --git a/components/newappeal/buildsection.js b/components/newappeal/buildsection.js index 91498eb0..2cf10ef7 100644 --- a/components/newappeal/buildsection.js +++ b/components/newappeal/buildsection.js @@ -292,7 +292,7 @@ let BuildSection = (props) => { useSaveStatus && router.replace( router.locale != "en" - ? "/" + router.locale + "/myportal" + ? "/" + router.locale + "/fymhorth" : "/myportal" ); }; diff --git a/i18n.js b/i18n.js index 9c2243af..bfe06a35 100644 --- a/i18n.js +++ b/i18n.js @@ -39,7 +39,12 @@ module.exports = { "/case/*": ["case", "home"], "/case/[ticketnumber]": ["case", "home"], "/case/id/[incident]": ["case", "home"], - "/myportal/representation": ["case", "myrepresentations", "common"], + "/myportal/representation": [ + "case", + "myrepresentations", + "common", + "home", + ], "/myportal/error": ["myportal", "common"], "/myportal/case/id/[incident]": ["case", "home"], "/myportal/addresssearch": ["search", "case", "myportal"],