Only shows sponsor category if test server is disabled

This commit is contained in:
Ajay Ramachandran
2020-04-09 12:13:56 -04:00
parent adef65b878
commit e085163dfd

View File

@@ -190,7 +190,9 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
getCategoryOptions() {
let elements = [];
for (const category of CompileConfig.categoryList) {
//TODO: Remove this when testing server is not needed
let categoryList = Config.config.testingServer ? CompileConfig.categoryList : ["sponsor"];
for (const category of categoryList) {
elements.push(
<option value={category}
key={category}>