chore: typo in useNewBeeDesktopVersion hook (#501)

This commit is contained in:
Vojtech Simetka
2022-07-28 15:47:06 +02:00
committed by GitHub
parent c9384ff23e
commit 9f0ab1323b
+2 -2
View File
@@ -75,7 +75,7 @@ async function checkNewVersion(conf: Config): Promise<string> {
}
export function useNewBeeDesktopVersion(isBeeDesktop: boolean, conf: Config = config): NewDesktopVersionHook {
const [newBeeDesktopVersion, setNewNewBeeDesktopVersion] = useState<string>('')
const [newBeeDesktopVersion, setNewBeeDesktopVersion] = useState<string>('')
useEffect(() => {
if (!isBeeDesktop) {
@@ -84,7 +84,7 @@ export function useNewBeeDesktopVersion(isBeeDesktop: boolean, conf: Config = co
checkNewVersion(conf).then(version => {
if (version !== '') {
setNewNewBeeDesktopVersion(version)
setNewBeeDesktopVersion(version)
}
})
}, [isBeeDesktop, conf])