From d5d2e0a9d36c2890d1c48baaa5f9d2bfdd4d6af1 Mon Sep 17 00:00:00 2001 From: Knut Kirkhorn Date: Wed, 3 Apr 2019 20:27:31 +0200 Subject: [PATCH] Minor fixes --- cli.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cli.js b/cli.js index bdadd5d..95e909e 100755 --- a/cli.js +++ b/cli.js @@ -180,7 +180,6 @@ function checkAllFlags() { if (cli.flags.p !== undefined) { if (cli.flags.p == 'h') { btcValue.getPercentageChangeLastHour().then(percentage => { - printss(); printPercentage(percentage + '%'); }).catch(() => { exitError('Please check your internet connection'); @@ -198,7 +197,6 @@ function checkAllFlags() { exitError('Please check your internet connection'); }); } else { - spinner.stop(); exitError('Invalid percentage input. Check `btc-value --help`.'); } } else { @@ -246,6 +244,7 @@ function checkAllFlags() { } autorefreshTimer = setTimeout(checkAllFlags, autorefresh * 1000); + spinner.start(); } }