Skip to content

Commit

Permalink
Merge pull request #937 from teamdigitale/fe-fix-rilascio-20231119
Browse files Browse the repository at this point in the history
feat(fe-piattaforma): updates 20231120 fix-fe
  • Loading branch information
alessandrofrittelladxc authored Nov 20, 2023
2 parents ef6dc6b + 9484079 commit cb873e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fe-piattaforma/src/redux/features/user/userThunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export const SessionCheck = async (dispatch: any) => {

const CreateUserContextAction = { type: 'user/CreateUserContext' };
export const CreateUserContext =
(cfUtenteLoggato?: string) => async (dispatch: Dispatch) => {
(codiceFiscale ?: string) => async (dispatch: Dispatch) => {
try {
dispatch({ ...CreateUserContextAction, cfUtenteLoggato }); // TODO manage dispatch for dev env only
dispatch({ ...CreateUserContextAction, codiceFiscale }); // TODO manage dispatch for dev env only
dispatch(showLoader());

const res = await API.post(`${process?.env?.GESTIONE_UTENTE}contesto`, {cfUtenteLoggato});
const res = await API.post(`${process?.env?.GESTIONE_UTENTE}contesto`, {codiceFiscale });

if (res?.data) {
dispatch(setUserContext(res.data));
Expand Down

0 comments on commit cb873e6

Please sign in to comment.