Skip to content

Commit

Permalink
Refresh data after update
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloamorimbr committed Nov 28, 2024
1 parent 2fd2f43 commit 0b0702e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsapp/js/account/accountSettingsRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const AccountSettings = () => {
Partial<AccountFieldsValues>
>({});

const {currentLoggedAccount} = useSession();
const {currentLoggedAccount, refreshAccount} = useSession();

useEffect(() => {
if (!currentLoggedAccount) {
Expand Down Expand Up @@ -86,6 +86,7 @@ const AccountSettings = () => {
.patchProfile(patchData)
.done(() => {
onUpdateComplete();
refreshAccount();
})
.fail((...args: any) => {
onUpdateFail(args[0].responseJSON);
Expand Down

0 comments on commit 0b0702e

Please sign in to comment.