From cb508b9e56dc5444d244e1f903b2fa0131bc601d Mon Sep 17 00:00:00 2001 From: Vu Nguyen Date: Fri, 2 Feb 2024 14:53:10 +0700 Subject: [PATCH] Fix can't install new module version (#45) * fix(use-episodes): replace anify with tmdb * fix(remote-module-item): can't install new version --- .../module/screens/remote/components/remote-module-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/module/screens/remote/components/remote-module-item.tsx b/src/screens/module/screens/remote/components/remote-module-item.tsx index c5c2fb5..c5c599e 100644 --- a/src/screens/module/screens/remote/components/remote-module-item.tsx +++ b/src/screens/module/screens/remote/components/remote-module-item.tsx @@ -27,7 +27,7 @@ const RemoteModuleItem: React.FC = ({ const install = async () => { try { - if (hasInstalled) return; + if (hasInstalled && !hasNewVersion) return; setInstalling(true); @@ -68,7 +68,7 @@ const RemoteModuleItem: React.FC = ({ )} - {hasNewVersion && ( + {hasNewVersion && hasInstalled && ( )}