diff --git a/src/rtk/app/helpers.ts b/src/rtk/app/helpers.ts index 848e4c59f..de7b9f53a 100644 --- a/src/rtk/app/helpers.ts +++ b/src/rtk/app/helpers.ts @@ -122,9 +122,12 @@ function toParamsAndIds({ id, ...params }: CommonFetchPropsAndId): CommonFetchPr } export function validateDataSource(dataSource: DataSourceTypes | undefined) { - if (!dataSource || !config.enableSquidDataSource) { + if (!config.enableSquidDataSource) { dataSource = DataSourceTypes.CHAIN } + if (!dataSource) { + dataSource = DataSourceTypes.SQUID + } return dataSource }