mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 19:32:20 +08:00
fix(admin): do not handle version upgrade logic if current version is not set
This commit is contained in:
@ -88,6 +88,9 @@ export const MainLayout: FC<MainLayoutProps> = ({ children }) => {
|
||||
|
||||
const [upgradeVersion, setUpgradeVersion] = useState('');
|
||||
const checkForUpgrade = async () => {
|
||||
if (versionNumber === '0.0.0') {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const result = await upgradeVersionAvailable(versionNumber);
|
||||
setUpgradeVersion(result);
|
||||
|
||||
Reference in New Issue
Block a user