fix(front): fix changing language not being saved to the user's settings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-08-23 16:11:55 +02:00
parent fef60ed0f9
commit 010a5e426d
3 changed files with 14 additions and 9 deletions

View File

@@ -59,12 +59,8 @@ export async function doUpdateSetting(
}));
}
export async function updateLocale(locale: string) {
useMutation<{ id: string; locale: string }>(UPDATE_USER_LOCALE, () => ({
variables: {
locale,
},
}));
export function updateLocale() {
return useMutation<{ id: string; locale: string }>(UPDATE_USER_LOCALE);
}
export function registerAccount() {