From 599f81ab950ba4011460ed70e13addd177e3bd94 Mon Sep 17 00:00:00 2001 From: alexstotsky Date: Thu, 13 Oct 2022 16:21:08 +0300 Subject: [PATCH] Update get query options saga --- src/state/query/saga.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/state/query/saga.js b/src/state/query/saga.js index d305bd415..c29190d33 100644 --- a/src/state/query/saga.js +++ b/src/state/query/saga.js @@ -61,6 +61,7 @@ import actions from './actions' import { getQueryLimit, NO_QUERY_LIMIT_TARGETS } from './utils' import types from './constants' +const { showFrameworkMode } = config const { MENU_ACCOUNT_BALANCE, MENU_AFFILIATES_EARNINGS, @@ -231,11 +232,11 @@ function* getOptions({ target }) { options.filter = yield select(getFilterQuery, target) const selector = getSelector(target) const sign = selector ? yield select(selector) : '' - const isFundingFees = yield select(getIsFundingFees) - const isTradingFees = yield select(getIsTradingFees) - const isVSPrevDayBalance = yield select(getIsVSPrevDayBalance) - const isUnrealizedProfitExcluded = yield select(getIsUnrealizedProfitExcluded) - const isVsAccountBalanceSelected = yield select(getIsVsAccountBalanceSelected) + const isFundingFees = showFrameworkMode ? yield select(getIsFundingFees) : '' + const isTradingFees = showFrameworkMode ? yield select(getIsTradingFees) : '' + const isVSPrevDayBalance = showFrameworkMode ? yield select(getIsVSPrevDayBalance) : '' + const isUnrealizedProfitExcluded = showFrameworkMode ? yield select(getIsUnrealizedProfitExcluded) : '' + const isVsAccountBalanceSelected = showFrameworkMode ? yield select(getIsVsAccountBalanceSelected) : '' switch (target) { case MENU_ACCOUNT_BALANCE: