Skip to content

Commit

Permalink
add REACT_APP_DISABLE_COUNTRY_LEADERBOARD_CONFIG (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored Jan 14, 2024
1 parent f92d48e commit 9556fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -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=''
2 changes: 1 addition & 1 deletion src/pages/Leaderboard/Leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
<CountrySelector
className="mr-button"
currentCountryCode={this.props.countryCode}
Expand Down

0 comments on commit 9556fb2

Please sign in to comment.