mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 01:22:49 +00:00
fix: avoid refetching profile after profile save
This commit is contained in:
@@ -245,6 +245,21 @@ export function ProfileSetupPage() {
|
||||
},
|
||||
}).unwrap();
|
||||
authStorage.setProfileId(profileResult.id);
|
||||
dispatch(setCurrentProfile({
|
||||
id: profileResult.id,
|
||||
userId: user?.id ?? '',
|
||||
professionId: pv.professionId,
|
||||
addressId: '',
|
||||
type: selectedType,
|
||||
firstName: pv.firstName,
|
||||
middleName: pv.middleName,
|
||||
lastName: pv.lastName,
|
||||
gender: pv.gender,
|
||||
dob: pv.dob,
|
||||
pob: pv.pob ?? '',
|
||||
maritalStatus: pv.maritalStatus,
|
||||
isComplete: true,
|
||||
} as CurrentProfile));
|
||||
|
||||
await addressTrigger({
|
||||
url: `/addresss/profile/${profileResult.id}`,
|
||||
|
||||
Reference in New Issue
Block a user