From 288e9a4e8518ea8bc2db61124c80243b9a3932ea Mon Sep 17 00:00:00 2001 From: CollinBeczak Date: Sun, 14 Jan 2024 12:27:23 -0600 Subject: [PATCH] add REACT_APP_DISABLE_COUNTRY_LEADERBOARD_CONFIG --- .env | 3 +++ src/pages/Leaderboard/Leaderboard.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env b/.env index f91227cc7..7f8ddabd9 100644 --- a/.env +++ b/.env @@ -194,3 +194,6 @@ REACT_APP_DISABLE_TASK_CLUSTERS='' # Disable User Leaderboard configurations REACT_APP_DISABLE_USER_LEADERBOARD_CONFIGS='' + +#Disable Country Leaderboard Configuration +REACT_APP_DISABLE_COUNTRY_LEADERBOARD_CONFIG='' diff --git a/src/pages/Leaderboard/Leaderboard.js b/src/pages/Leaderboard/Leaderboard.js index 779a48ec1..2c663bac6 100644 --- a/src/pages/Leaderboard/Leaderboard.js +++ b/src/pages/Leaderboard/Leaderboard.js @@ -95,7 +95,7 @@ class Leaderboard extends Component { customStartDate={this.props.startDate ? new Date(this.props.startDate) : null} customEndDate={this.props.endDate ? new Date(this.props.endDate) : null} /> - {!this.props.suppressCountrySelection && + {!this.props.suppressCountrySelection && !process.env.REACT_APP_DISABLE_COUNTRY_LEADERBOARD_CONFIG &&