From d871b0143656d095445e26b1cc6d8ea5047e96a9 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 16 May 2021 18:30:39 +0300 Subject: [PATCH] AdvancedSettingsComponent small fix --- .../advancedSettings/AdvancedSettingsComponent.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/features/forwards/options/components/advanced/advancedSettings/AdvancedSettingsComponent.js b/src/features/forwards/options/components/advanced/advancedSettings/AdvancedSettingsComponent.js index 33748b3..8fb4696 100644 --- a/src/features/forwards/options/components/advanced/advancedSettings/AdvancedSettingsComponent.js +++ b/src/features/forwards/options/components/advanced/advancedSettings/AdvancedSettingsComponent.js @@ -4,7 +4,11 @@ import ExceptionsCard from "../exceptions/ExceptionsCard"; import ChangePointsCard from "../changePoints/ChangePointsCard"; const AdvancedSettingsComponent = ({ data }) => { - const spaceBetweenCards = data && data.exceptions && data.changePoints; + const spaceBetweenCards = + data && + data.exceptions && + data.changePoints && + data.changePoints.length > 0; return ( <> {data && data.exceptions && ( @@ -12,7 +16,7 @@ const AdvancedSettingsComponent = ({ data }) => { )} {spaceBetweenCards &&
} - {data && data.changePoints && ( + {data && data.changePoints && data.changePoints.length > 0 && ( )}