diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-12 10:11:02 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-12 10:11:02 +0700 |
| commit | ab0782b5cf7b65930b0b40528b9205f3f0dfc3a0 (patch) | |
| tree | 6f28893f1a0d9be80cae9dc02d6861e174a7ffd7 /src/lib/auth/components/PersonalProfile.jsx | |
| parent | 752e55686dfee0d536f9e4e128336e91681ba794 (diff) | |
<iman> update switch account
Diffstat (limited to 'src/lib/auth/components/PersonalProfile.jsx')
| -rw-r--r-- | src/lib/auth/components/PersonalProfile.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/auth/components/PersonalProfile.jsx b/src/lib/auth/components/PersonalProfile.jsx index 7ef3af2d..727785bf 100644 --- a/src/lib/auth/components/PersonalProfile.jsx +++ b/src/lib/auth/components/PersonalProfile.jsx @@ -22,7 +22,9 @@ const PersonalProfile = () => { useEffect(() => { const loadProfile = async () => { - const dataProfile = await addressApi({ id: auth.partner_id }); + const dataProfile = await addressApi({ + id: auth.partnerId ? auth.partnerId : auth.partner_id, + }); setValue('email', dataProfile?.email); setValue('name', dataProfile?.name); setValue('mobile', dataProfile?.mobile); |
