Skip to content

Commit

Permalink
Merge pull request #63 from GaloyMoney/add-mocked-provider
Browse files Browse the repository at this point in the history
fix(realtime): 'isDevExchangeConfig' check
  • Loading branch information
vindard authored Mar 19, 2024
2 parents 39c302f + b0b65e1 commit 5f4c165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion realtime/src/services/exchanges/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const exchanges: { [key: string]: IExchangeService } = {}
const isDevExchangeConfig = (
config: ExchangeConfig | DevExchangeConfig,
): config is DevExchangeConfig => {
return "devMockPrice" in config.config
return typeof config.config === "object" && "devMockPrice" in config.config
}

export const ExchangeFactory = (): ExchangeFactory => {
Expand Down

0 comments on commit 5f4c165

Please sign in to comment.