fix TS typing

This commit is contained in:
João Victor 2024-01-30 11:07:10 -03:00
parent fe0d46d607
commit 69a174b15f

View File

@ -5,7 +5,7 @@ import { USER_CHANGED_LOCAL_SETTINGS } from './mutations';
const useUserChangedLocalSettings = () => {
const [userChangedLocalSettings] = useMutation(USER_CHANGED_LOCAL_SETTINGS);
const setLocalSettings = (settings: object) => {
const setLocalSettings = (settings: Record<string, unknown>) => {
return userChangedLocalSettings({
variables: {
settings: JSON.stringify(settings),