Skip to content

Commit

Permalink
chore: prevent error after deploying remote token
Browse files Browse the repository at this point in the history
  • Loading branch information
SGiaccobasso committed Nov 28, 2024
1 parent f51a3ca commit ae5e8b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Review: FC = () => {
chain.id,
state.txState.txHash,
state.selectedChains.map(
(axelarChainId) => computed.indexedById[axelarChainId].chain_id
(axelarChainId) => computed.indexedById[axelarChainId]?.chain_id
)
);
}
Expand Down
8 changes: 6 additions & 2 deletions apps/maestro/src/services/axelarscan/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,14 @@ export function useEVMChainConfigsQuery() {

return {
...queryResult,
// TODO: remove this once we have the sui chain data
data: [...configured, suiChainMockData],
computed: {
indexedByChainId: indexBy(prop("chain_id"), configured),
indexedById: indexBy(prop("id"), configured),
indexedByChainId: indexBy(prop("chain_id"), [
...configured,
suiChainMockData,
]),
indexedById: indexBy(prop("id"), [...configured, suiChainMockData]),
wagmiChains,
},
};
Expand Down

0 comments on commit ae5e8b8

Please sign in to comment.