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

Commit 94fe90c

Browse files
committed
Fixed conditional check
1 parent 18f77e4 commit 94fe90c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/directives/ios-card/ios-card.directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import angular from 'angular'
1313
},
1414
controller: ['$scope', 'CONSTANTS', function($scope, CONSTANTS) {
1515
$scope.DOMAIN = CONSTANTS.domain
16-
$scope.SUBDOMAIN = location.href.search('//members') ? 'members' : 'www'
16+
$scope.SUBDOMAIN = location.href.search('//members') >= 0 ? 'members' : 'www'
1717
}]
1818
}
1919
})

app/filters/challengeLinks.filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import _ from 'lodash'
4545
} else {
4646
data = {
4747
domain: CONSTANTS.domain,
48-
subdomain: location.href.search('//members') ? 'members' : 'www',
48+
subdomain: location.href.search('//members') >= 0 ? 'members' : 'www',
4949
track: challenge.track.toLowerCase(),
5050
forumId: challenge.forumId,
5151
id: challenge.id

0 commit comments

Comments
 (0)