Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit e3f77c0

Browse files
committed
Added undefined check
1 parent 544c607 commit e3f77c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/memberRegistration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ var registerUser = function (user, api, dbConnectionMap, next) {
396396
function (callback) {
397397
var url;
398398
url = process.env.TC_ACTIVATION_SERVER_NAME + '/reg2/activate.action?code=' + activationCode;
399-
if (regSource.match(/arena/)) {
399+
if (regSource && regSource.match(/arena/)) {
400400
url += '&destination=http%3A%2F%2Farena.topcoder.com';
401401
}
402402
api.log("Activation url: " + url, "debug");

0 commit comments

Comments
 (0)