Skip to content

Commit

Permalink
feat(PN-10623): wip on senderDenomination field
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahDonvito committed Apr 18, 2024
1 parent 0810853 commit 2b2aaba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/pn-pa-webapp/src/redux/auth/reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ const userSlice = createSlice({
});
builder.addCase(getInstitutions.fulfilled, (state, action) => {
state.institutions = action.payload;
const currentInstitutionParentName = state.institutions.find(
(e) => e.id === state.user.organization.id
)?.parentName;
state.user.organization.parentDescription = currentInstitutionParentName;
});
builder.addCase(getProductsOfInstitution.fulfilled, (state, action) => {
state.productsOfInstitution = action.payload;
Expand Down

0 comments on commit 2b2aaba

Please sign in to comment.