fix REV-19 experiment check for refunds

This commit is contained in:
Matthew Piatetsky
2018-03-26 13:54:41 -04:00
parent c9c97e58c5
commit 063118cf0e

View File

@@ -88,7 +88,7 @@
courseNumber, courseName, enrollmentMode, showRefundOption, courseKey) {
// This flag is added for REV-19 experiment
var auditRefundableCourses = (window.experimentVariables || {}).auditRefundableCourses,
courseInExperiment = courseKey.indexOf(auditRefundableCourses) > 0,
courseInExperiment = auditRefundableCourses ? auditRefundableCourses.indexOf(courseKey) > -1 : false,
diagAttr = {};
if (isPaidCourse || courseInExperiment) {