Skip to content

Commit

Permalink
[FIX] App page showing version undefined for apps not in marketplace (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert authored Jan 17, 2023
1 parent 9390eb0 commit 1fecf0f
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ import { appIncompatibleStatusProps } from '../helpers';
import AppStatus from './tabs/AppStatus';

const versioni18nKey = (app: App): string => {
const { version, marketplaceVersion, marketplace } = app;
if (typeof marketplace === 'boolean') {
return marketplaceVersion;
}
const { version, marketplaceVersion, installed } = app;

return version;
return installed ? version : marketplaceVersion;
};

const AppDetailsPageHeader = ({ app }: { app: App }): ReactElement => {
Expand Down

0 comments on commit 1fecf0f

Please sign in to comment.