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

Commit

Permalink
let\'s try it
Browse files Browse the repository at this point in the history
  • Loading branch information
Nabil Bourenane committed Dec 20, 2021
1 parent 3689974 commit 9882322
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ const envDefinitions = {
parser: stringParser,
desc: "url used to fetch platform app manifests (staging)",
},
PLATFORM_LOCAL_MANIFEST_URL: {
PLATFORM_LOCAL_MANIFEST_PATH: {
def: "",
parser: stringParser,
desc: "url used to fetch local platform app manifests (test)",
Expand Down
3 changes: 1 addition & 2 deletions src/platform/PlatformAppProvider/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,8 @@ export function getLocalManifest(fileName) {
// ? manifest.forEach(m => new Map(m))
// :
// TODO: PLEASE HALP ME HANDLE SEVERAL Dapps at a time

} catch (parseError) {
console.log(parseError);
console.error("local manifest readFile error:", parseError);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/platform/PlatformAppProvider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { getLocalManifest } from "./helpers";
// @ts-expect-error empty object creates an error
const PlatformAppContext = createContext<PlatformAppContextType>({});
const initialState: State = {
localManifests: getEnv('PLATFORM_LOCAL_MANIFEST_URL') ? getLocalManifest(getEnv('PLATFORM_LOCAL_MANIFEST_URL')) : new Map(),
localManifests: getEnv('PLATFORM_LOCAL_MANIFEST_PATH') ? getLocalManifest(getEnv('PLATFORM_LOCAL_MANIFEST_PATH')) : new Map(),
remoteManifests: new Map(),
isLoading: false,
lastUpdateTime: undefined,
Expand Down

0 comments on commit 9882322

Please sign in to comment.