Skip to content

Commit 7afe679

Browse files
fix ReferenceError: cancelReason is not defined
1 parent 7bf71f5 commit 7afe679

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ChallengeService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ async function updateChallenge(currentUser, challengeId, data) {
18711871
}
18721872
);
18731873
}
1874-
if (sendRejectedEmail || cancelReason) {
1874+
if (sendRejectedEmail || data.cancelReason) {
18751875
logger.debug("Should send redirected email");
18761876
await helper.sendSelfServiceNotification(
18771877
constants.SelfServiceNotificationTypes.WORK_REQUEST_REDIRECTED,

0 commit comments

Comments
 (0)