Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 8cb1024

Browse files
committed
Fix bug: env var csv split was wrongly applied
Addresses review comments #162 (comment) and #162 (comment)
1 parent 556a45b commit 8cb1024

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/config.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ export const LIQUIDITY_POOL_REGISTRY_ADDRESS: string | undefined = _.isEmpty(
100100
EnvVarType.ETHAddressHex,
101101
);
102102

103-
export const RFQT_API_KEY_WHITELIST: string[] = (process.env.RFQT_API_KEY_WHITELIST || '[]').split(',');
103+
export const RFQT_API_KEY_WHITELIST: string[] =
104+
process.env.RFQT_API_KEY_WHITELIST === undefined ? [] : process.env.RFQT_API_KEY_WHITELIST.split(',');
104105

105-
export const RFQT_MAKER_ENDPOINTS: string[] = (process.env.RFQT_MAKER_ENDPOINTS || '[]').split(',');
106+
export const RFQT_MAKER_ENDPOINTS: string[] =
107+
process.env.RFQT_MAKER_ENDPOINTS === undefined ? [] : process.env.RFQT_MAKER_ENDPOINTS.split(',');
106108

107109
// Max number of entities per page
108110
export const MAX_PER_PAGE = 1000;

0 commit comments

Comments
 (0)