From 9b2e9162cd3036999507569d1011cdef76d6e4e8 Mon Sep 17 00:00:00 2001 From: kunish Date: Tue, 5 Sep 2023 16:19:14 +0800 Subject: [PATCH] chore: fix typo, updating --- src/pages/Rules.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Rules.tsx b/src/pages/Rules.tsx index 66467a6..9501d28 100644 --- a/src/pages/Rules.tsx +++ b/src/pages/Rules.tsx @@ -21,13 +21,13 @@ export default () => { onMount(updateRules) - const { map: updateingMap, setWithCallback: setUpdateingMap } = + const { map: updatingMap, setWithCallback: setUpdatingMap } = useStringBooleanMap() const [allProviderIsUpdating, setAllProviderIsUpdating] = createSignal(false) const onUpdateProviderClick = (e: MouseEvent, name: string) => { e.stopPropagation() - setUpdateingMap(name, async () => await updateRuleProviderByName(name)) + void setUpdatingMap(name, () => updateRuleProviderByName(name)) } const onUpdateAllProviderClick = async (e: MouseEvent) => { @@ -95,7 +95,7 @@ export default () => { >