hedgequantx 2.4.40 → 2.4.41
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 +1 -1
- package/src/app.js +5 -3
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -241,10 +241,10 @@ const run = async () => {
|
|
|
241
241
|
while (true) {
|
|
242
242
|
try {
|
|
243
243
|
prepareStdin();
|
|
244
|
-
console.clear();
|
|
245
|
-
await banner(false);
|
|
246
244
|
|
|
247
245
|
if (!connections.isConnected()) {
|
|
246
|
+
console.clear();
|
|
247
|
+
await banner(false);
|
|
248
248
|
const choice = await mainMenu();
|
|
249
249
|
|
|
250
250
|
if (choice === 'exit') {
|
|
@@ -262,8 +262,10 @@ const run = async () => {
|
|
|
262
262
|
await refreshStats();
|
|
263
263
|
}
|
|
264
264
|
} else {
|
|
265
|
-
// Refresh stats
|
|
265
|
+
// Refresh stats BEFORE clearing screen, so everything displays at once
|
|
266
266
|
await refreshStats();
|
|
267
|
+
console.clear();
|
|
268
|
+
await banner(false);
|
|
267
269
|
|
|
268
270
|
const action = await dashboardMenu(currentService);
|
|
269
271
|
|