chore: typo in useNewBeeDesktopVersion hook (#501)
This commit is contained in:
@@ -75,7 +75,7 @@ async function checkNewVersion(conf: Config): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useNewBeeDesktopVersion(isBeeDesktop: boolean, conf: Config = config): NewDesktopVersionHook {
|
export function useNewBeeDesktopVersion(isBeeDesktop: boolean, conf: Config = config): NewDesktopVersionHook {
|
||||||
const [newBeeDesktopVersion, setNewNewBeeDesktopVersion] = useState<string>('')
|
const [newBeeDesktopVersion, setNewBeeDesktopVersion] = useState<string>('')
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isBeeDesktop) {
|
if (!isBeeDesktop) {
|
||||||
@@ -84,7 +84,7 @@ export function useNewBeeDesktopVersion(isBeeDesktop: boolean, conf: Config = co
|
|||||||
|
|
||||||
checkNewVersion(conf).then(version => {
|
checkNewVersion(conf).then(version => {
|
||||||
if (version !== '') {
|
if (version !== '') {
|
||||||
setNewNewBeeDesktopVersion(version)
|
setNewBeeDesktopVersion(version)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}, [isBeeDesktop, conf])
|
}, [isBeeDesktop, conf])
|
||||||
|
|||||||
Reference in New Issue
Block a user