Skip to content

Commit

Permalink
Fix can't install new module version (#45)
Browse files Browse the repository at this point in the history
* fix(use-episodes): replace anify with tmdb

* fix(remote-module-item): can't install new version
  • Loading branch information
hoangvu12 authored Feb 2, 2024
1 parent 42ed182 commit cb508b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const RemoteModuleItem: React.FC<RemoteModuleItemProps> = ({

const install = async () => {
try {
if (hasInstalled) return;
if (hasInstalled && !hasNewVersion) return;

setInstalling(true);

Expand Down Expand Up @@ -68,7 +68,7 @@ const RemoteModuleItem: React.FC<RemoteModuleItemProps> = ({
)}
</Button>

{hasNewVersion && (
{hasNewVersion && hasInstalled && (
<View className="absolute right-2 top-2 h-3 w-3 rounded-full bg-red-500" />
)}
</View>
Expand Down

0 comments on commit cb508b9

Please sign in to comment.