diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-03-07 11:19:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 11:19:50 +0900 |
commit | e74c46e9ab480959c4416f83a78289e460bdeec7 (patch) | |
tree | c770265051354782bb6e779905e0351cc8f8abd9 /src/state/queries/preferences/index.ts | |
parent | f3db23a3b14e9444cb499c727b9d62c414e5a840 (diff) | |
parent | 8b0e575f6423575c08e9a6748be41c888611d631 (diff) | |
download | voidsky-e74c46e9ab480959c4416f83a78289e460bdeec7.tar.zst |
Merge branch 'main' into patch-3
Diffstat (limited to 'src/state/queries/preferences/index.ts')
-rw-r--r-- | src/state/queries/preferences/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state/queries/preferences/index.ts b/src/state/queries/preferences/index.ts index 07198de77..37ef10ae0 100644 --- a/src/state/queries/preferences/index.ts +++ b/src/state/queries/preferences/index.ts @@ -169,7 +169,7 @@ export function usePreferencesSetBirthDateMutation() { return useMutation<void, unknown, {birthDate: Date}>({ mutationFn: async ({birthDate}: {birthDate: Date}) => { - await getAgent().setPersonalDetails({birthDate}) + await getAgent().setPersonalDetails({birthDate: birthDate.toISOString()}) // triggers a refetch await queryClient.invalidateQueries({ queryKey: preferencesQueryKey, |