diff --git a/actions/index.js b/actions/index.js index cba68508..fe665760 100644 --- a/actions/index.js +++ b/actions/index.js @@ -491,6 +491,22 @@ export const getAppealsTypes = () => { }); }; +export const getAppealsTypesForNewAppeal = () => { + return axios + .get(BASE_URL + "/api/endpoint/getappealtypesfornewappeal_api") + .then((res) => res.data) + .catch((error) => { + console.log(error); + let ErrResponse = { + value: [], + errorCode: error.response.status, + errorMsg: error.response.statusText, + }; + + return ErrResponse; + }); +}; + export const getLPA = () => { return axios .get(BASE_URL + "/api/endpoint/getlpa_api") diff --git a/components/homepage/login.js b/components/homepage/login.js index 72ffeac0..ed565c0c 100644 --- a/components/homepage/login.js +++ b/components/homepage/login.js @@ -165,7 +165,6 @@ let Login = (props) => { router.replace({ pathname: router.locale == "cy" ? "/fymhorth" : "/myportal", - shallow: true, })) : //setShowSpinnerState(false), setValidLoginID(false); diff --git a/components/myportal.js b/components/myportal.js index 79fe02cf..5912aaa7 100644 --- a/components/myportal.js +++ b/components/myportal.js @@ -89,8 +89,18 @@ const MyPortal = (props) => { alt={router.locale == "cy" ? "Defnyddiwr" : "User"} />{" "}