Skip to content

Commit

Permalink
fix: tokens enabled config hook type
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Oct 14, 2024
1 parent f7fbef1 commit ee6a769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function useConfigSwapsEnabled() {
return get(config, 'swapsEnabled', false);
}

export function useConfigTokensEnabledByDefault() {
export function useConfigTokensEnabledByDefault(): string[] {
const config = useRemoteConfig();
return get(config, 'tokensEnabledByDefault', false);
return get(config, 'tokensEnabledByDefault', []);
}
1 change: 1 addition & 0 deletions packages/query/types/remote-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ export interface RemoteConfig {
mainnetApiUrl: string;
signetApiUrl: string;
};
tokensEnabledByDefault: string[];
}

0 comments on commit ee6a769

Please sign in to comment.