From 40c7c1b515abf4abcecd6480afb28f27fb71d0f0 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Sat, 30 Dec 2023 21:32:23 -0500 Subject: port updater to ws, also small refactoring --- frontend/src/components/settings/pages/general/BranchSelect.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/settings/pages/general/BranchSelect.tsx') diff --git a/frontend/src/components/settings/pages/general/BranchSelect.tsx b/frontend/src/components/settings/pages/general/BranchSelect.tsx index 1af06823..6e69208a 100644 --- a/frontend/src/components/settings/pages/general/BranchSelect.tsx +++ b/frontend/src/components/settings/pages/general/BranchSelect.tsx @@ -3,7 +3,7 @@ import { FunctionComponent } from 'react'; import { useTranslation } from 'react-i18next'; import Logger from '../../../../logger'; -import { callUpdaterMethod } from '../../../../updater'; +import { checkForUpdates } from '../../../../updater'; import { useSetting } from '../../../../utils/hooks/useSetting'; const logger = new Logger('BranchSelect'); @@ -37,7 +37,7 @@ const BranchSelect: FunctionComponent<{}> = () => { selectedOption={selectedBranch} onChange={async (newVal) => { await setSelectedBranch(newVal.data); - callUpdaterMethod('check_for_updates'); + checkForUpdates(); logger.log('switching branches!'); }} /> -- cgit v1.2.3