fix TS typing
This commit is contained in:
parent
fe0d46d607
commit
69a174b15f
@ -5,7 +5,7 @@ import { USER_CHANGED_LOCAL_SETTINGS } from './mutations';
|
|||||||
const useUserChangedLocalSettings = () => {
|
const useUserChangedLocalSettings = () => {
|
||||||
const [userChangedLocalSettings] = useMutation(USER_CHANGED_LOCAL_SETTINGS);
|
const [userChangedLocalSettings] = useMutation(USER_CHANGED_LOCAL_SETTINGS);
|
||||||
|
|
||||||
const setLocalSettings = (settings: object) => {
|
const setLocalSettings = (settings: Record<string, unknown>) => {
|
||||||
return userChangedLocalSettings({
|
return userChangedLocalSettings({
|
||||||
variables: {
|
variables: {
|
||||||
settings: JSON.stringify(settings),
|
settings: JSON.stringify(settings),
|
||||||
|
Loading…
Reference in New Issue
Block a user