소스 검색

remove args

kaori 3 년 전
부모
커밋
119ba46d4e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 { IUser } from '~/interfaces/user';
@@ -29,7 +29,7 @@ export const usePersonalSettings = (): SWRResponse<IUser, Error> & IPersonalSett
   // Sync with database
   const sync = (): void => {
     const { mutate } = swrResult;
-    mutate(personalSettingsDataFromDB);
+    mutate();
   };
 
   const updateBasicInfo = (): void => {