fix: detect is same packege use uniqid
This commit is contained in:
parent
47579c86e6
commit
35ef874867
@ -43,9 +43,9 @@ const Installed: FC<Props> = ({
|
|||||||
const hasInstalled = !!installedVersion
|
const hasInstalled = !!installedVersion
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (hasInstalled && toInstallVersion === installedVersion)
|
if (hasInstalled && uniqueIdentifier === installedInfoPayload.uniqueIdentifier)
|
||||||
onInstalled()
|
onInstalled()
|
||||||
}, [hasInstalled, toInstallVersion, installedVersion])
|
}, [hasInstalled])
|
||||||
|
|
||||||
const [isInstalling, setIsInstalling] = React.useState(false)
|
const [isInstalling, setIsInstalling] = React.useState(false)
|
||||||
const { mutateAsync: installPackageFromLocal } = useInstallPackageFromLocal()
|
const { mutateAsync: installPackageFromLocal } = useInstallPackageFromLocal()
|
||||||
|
@ -52,9 +52,9 @@ const Installed: FC<Props> = ({
|
|||||||
} = checkTaskStatus()
|
} = checkTaskStatus()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (hasInstalled && toInstallVersion === installedVersion)
|
if (hasInstalled && uniqueIdentifier === installedInfoPayload.uniqueIdentifier)
|
||||||
onInstalled()
|
onInstalled()
|
||||||
}, [hasInstalled, toInstallVersion, installedVersion])
|
}, [hasInstalled])
|
||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
stop()
|
stop()
|
||||||
|
Loading…
Reference in New Issue
Block a user