mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Fix: fix semver detection bug
This commit is contained in:
		
							parent
							
								
									0197b449ed
								
							
						
					
					
						commit
						49036a9738
					
				@ -1,6 +1,6 @@
 | 
			
		||||
import { useTranslation } from "next-i18next";
 | 
			
		||||
import useSWR from "swr";
 | 
			
		||||
import { compareVersions } from "compare-versions";
 | 
			
		||||
import { compareVersions, validate } from "compare-versions";
 | 
			
		||||
import { MdNewReleases } from "react-icons/md";
 | 
			
		||||
 | 
			
		||||
export default function Version() {
 | 
			
		||||
@ -44,7 +44,7 @@ export default function Version() {
 | 
			
		||||
          </a>
 | 
			
		||||
        )}
 | 
			
		||||
      </span>
 | 
			
		||||
      {version === "main" || version === "dev" || version === "nightly"
 | 
			
		||||
      {!validate(version)
 | 
			
		||||
        ? null
 | 
			
		||||
        : releaseData &&
 | 
			
		||||
          latestRelease &&
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user