hedgequantx 2.6.72 → 2.6.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.6.72",
3
+ "version": "2.6.73",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
@@ -1145,8 +1145,10 @@ const setupConnection = async (provider, option) => {
1145
1145
  case 'endpoint':
1146
1146
  const defaultEndpoint = option.defaultEndpoint || '';
1147
1147
  value = await prompts.textInput(chalk.cyan(`ENDPOINT [${defaultEndpoint || 'required'}]:`));
1148
- if (value && value.trim() === '<') return await selectProviderOption(provider);
1149
- credentials.endpoint = (value || defaultEndpoint).trim();
1148
+ if (!value || value.trim() === '<' || value.trim() === '') {
1149
+ if (!defaultEndpoint) return await selectProviderOption(provider);
1150
+ }
1151
+ credentials.endpoint = (value && value.trim() !== '<' ? value : defaultEndpoint).trim();
1150
1152
  if (!credentials.endpoint) return await selectProviderOption(provider);
1151
1153
  break;
1152
1154