Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
LIVE-885
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-cortes committed Feb 16, 2022
1 parent ec7d4bf commit c6e6763
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/apps/hw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,10 @@ export const listApps = (
}

const type =
application.description === AppType.PLUGIN
? AppType.PLUGIN
: AppType.APP;
application.description &&
Object.values(AppType).includes(application.description as AppType)
? AppType[application.description]
: AppType.app;

const app: App = polyfillApp({
id: version.id,
Expand Down
7 changes: 4 additions & 3 deletions src/types/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,10 @@ export type Application = {
compatibleWalletsJSON: string | null | undefined;
};
export enum AppType {
APP = "app",
PLUGIN = "plugin",
TOOL = "tool", // Nb not used for now
app = "app",
plugin = "plugin",
tool = "tool",
swap = "swap",
}
// App is higher level on top of Application and ApplicationVersion
// with all fields Live needs and in normalized form (but still serializable)
Expand Down

0 comments on commit c6e6763

Please sign in to comment.