Skip to content

Commit

Permalink
Fix a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
Thunnini committed Jul 28, 2023
1 parent 2213b2e commit a1c07c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions packages/extension/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ const RoutesAfterReady: FunctionComponent = observer(() => {
ibcCurrencyRegistrar.isInitialized,
priceStore.isInitialized,
uiConfigStore.isInitialized,
uiConfigStore.isDeveloper,
gravityBridgeCurrencyRegistrar.isInitialized,
axelarEVMBridgeCurrencyRegistrar.isInitialized,
accountStore,
ibcChannelStore.isInitialized,
]);

const isReady: boolean = (() => {
Expand Down
10 changes: 8 additions & 2 deletions packages/stores/src/ibc/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,13 @@ export class IBCChannelStore {
}

const innerMap = migrationData.get(chainIdentifier.identifier)!;
const channel = map[channelId] as Channel;
innerMap.set(`${channel.portId}/${channel.channelId}`, channel);
const channel = map[channelId];
if (channel) {
innerMap.set(
`${channel.portId}/${channel.channelId}`,
channel
);
}
}
}
}
Expand Down Expand Up @@ -124,6 +129,7 @@ export class IBCChannelStore {
}
});

console.log("IBC channel store initialized");
runInAction(() => {
this.isInitialized = true;
});
Expand Down

0 comments on commit a1c07c6

Please sign in to comment.