fix: correct fetched releases variable in version check and update dev script for debugging

This commit is contained in:
twwu
2024-11-20 15:30:57 +08:00
parent 40d025052d
commit e3b8926aef
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ const Action: FC<Props> = ({
const handleFetchNewVersion = async () => {
const fetchedReleases = await fetchReleases(author, pluginName)
if (fetchReleases.length === 0) return
if (fetchedReleases.length === 0) return
const { needUpdate, toastProps } = checkForUpdates(fetchedReleases, meta!.version)
Toast.notify(toastProps)
if (needUpdate) {