kaori il y a 3 ans
Parent
commit
119ba46d4e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/app/src/stores/personal-settings.tsx

+ 2 - 2
packages/app/src/stores/personal-settings.tsx

@@ -1,4 +1,4 @@
-import useSWR, { SWRResponse } from 'swr';
+import useSWR, { mutate, SWRResponse } from 'swr';
 
 
 import { IExternalAccount } from '~/interfaces/external-account';
 import { IExternalAccount } from '~/interfaces/external-account';
 import { IUser } from '~/interfaces/user';
 import { IUser } from '~/interfaces/user';
@@ -29,7 +29,7 @@ export const usePersonalSettings = (): SWRResponse<IUser, Error> & IPersonalSett
   // Sync with database
   // Sync with database
   const sync = (): void => {
   const sync = (): void => {
     const { mutate } = swrResult;
     const { mutate } = swrResult;
-    mutate(personalSettingsDataFromDB);
+    mutate();
   };
   };
 
 
   const updateBasicInfo = (): void => {
   const updateBasicInfo = (): void => {