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 &&