From 627cd69740ed779f153aada3eaef5e78987a67db Mon Sep 17 00:00:00 2001 From: hirad-rework Date: Sun, 28 Nov 2021 11:57:48 +0330 Subject: [PATCH 1/3] fix--Added condition to fix undefined_trading_times --- src/navigation/menu.es6 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/navigation/menu.es6 b/src/navigation/menu.es6 index b808cd3c1..f532e78e8 100644 --- a/src/navigation/menu.es6 +++ b/src/navigation/menu.es6 @@ -19,6 +19,7 @@ const trade_messages = { }; export const extractFilteredMarkets = (trading_times_data, options) => { + if (trading_times_data) { const markets = trading_times_data.trading_times.markets.map((m) => { const market = { name: m.name, @@ -53,6 +54,9 @@ export const extractFilteredMarkets = (trading_times_data, options) => { }); return markets; + } else { + $.growl.error({message: "There are no valid trading times relating to your request"}); + } }; export const extractChartableMarkets = (trading_times_data) => { From 5377fd8c2a168048affe208dc6a61923d752a79b Mon Sep 17 00:00:00 2001 From: hirad-rework Date: Mon, 29 Nov 2021 12:50:24 +0330 Subject: [PATCH 2/3] Revert "fix--Added condition to fix undefined_trading_times" This reverts commit 627cd69740ed779f153aada3eaef5e78987a67db. reverting the last commit --- src/navigation/menu.es6 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/navigation/menu.es6 b/src/navigation/menu.es6 index f532e78e8..b808cd3c1 100644 --- a/src/navigation/menu.es6 +++ b/src/navigation/menu.es6 @@ -19,7 +19,6 @@ const trade_messages = { }; export const extractFilteredMarkets = (trading_times_data, options) => { - if (trading_times_data) { const markets = trading_times_data.trading_times.markets.map((m) => { const market = { name: m.name, @@ -54,9 +53,6 @@ export const extractFilteredMarkets = (trading_times_data, options) => { }); return markets; - } else { - $.growl.error({message: "There are no valid trading times relating to your request"}); - } }; export const extractChartableMarkets = (trading_times_data) => { From 8388c4e8ff8a9cf3d9d2bae1bf0463926bce5853 Mon Sep 17 00:00:00 2001 From: hirad-rework Date: Mon, 29 Nov 2021 16:01:43 +0330 Subject: [PATCH 3/3] fix--Added a new syntax to pass the circle ci tests --- .circleci/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 99b53e648..1ffb28714 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,7 @@ commands: name: Fetch git tags command: | mkdir -p ~/.ssh + ssh-keyscan github.com >> ~/.ssh/known_hosts echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== ' >> ~/.ssh/known_hosts # Fetch tags if git cache is present if [ -e /home/circleci/project/.git ]