Skip to content

Commit

Permalink
Use default data source as squid
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Apr 22, 2024
1 parent dfed09b commit afe60c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rtk/app/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit afe60c2

Please sign in to comment.