summaryrefslogtreecommitdiff
path: root/src/hooks/useLsfgHooks.ts
diff options
context:
space:
mode:
authorKurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>2025-07-18 16:01:47 -0400
committerGitHub <noreply@github.com>2025-07-18 16:01:47 -0400
commit1d296606babfb0ceb02068e852582ade7adc4d98 (patch)
treeb29330427adf1b27487a9d2a4b59942a71f585e3 /src/hooks/useLsfgHooks.ts
parentfa328306e3393a787d7c4f5855ecc23177eaa480 (diff)
parent3b60286fc360704eb6faeb72edbec602c624bd51 (diff)
downloaddecky-lsfg-vk-1d296606babfb0ceb02068e852582ade7adc4d98.tar.gz
decky-lsfg-vk-1d296606babfb0ceb02068e852582ade7adc4d98.zip
Merge pull request #34 from xXJSONDeruloXx/conf-per-game
implement conf file and real time changes
Diffstat (limited to 'src/hooks/useLsfgHooks.ts')
-rw-r--r--src/hooks/useLsfgHooks.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/useLsfgHooks.ts b/src/hooks/useLsfgHooks.ts
index 8ff9061..e514d72 100644
--- a/src/hooks/useLsfgHooks.ts
+++ b/src/hooks/useLsfgHooks.ts
@@ -110,7 +110,7 @@ export function useLsfgConfig() {
}
}, []);
- const updateField = useCallback(async (fieldName: keyof ConfigurationData, value: boolean | number): Promise<ConfigUpdateResult> => {
+ const updateField = useCallback(async (fieldName: keyof ConfigurationData, value: boolean | number | string): Promise<ConfigUpdateResult> => {
const newConfig = { ...config, [fieldName]: value };
return updateConfig(newConfig);
}, [config, updateConfig]);