Skip to content

Commit f3a8a29

Browse files
committed
Make the tests work
1 parent 9db990e commit f3a8a29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser-extensions/common/js/lib/challenges.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,8 +1812,8 @@ function challenge_tourist(data, params) {
18121812
// Just return true for now
18131813
// Return true if the athlete id for this page match what is stored in the user data
18141814
function is_our_page(data) {
1815-
// return has_user_data_athlete_id(data) && has_this_athlete_id(data) && get_user_data_athlete_id(data) == get_this_athlete_id(data)
1816-
return data.info.is_our_page
1815+
// return has_user_data_athlete_id(data) && has_this_athlete_id(data) && get_user_data_athlete_id(data) == get_this_athlete_id(data)
1816+
return (data.info !== undefined && data.info.is_our_page)
18171817
}
18181818

18191819
function has_user_data(data) {

0 commit comments

Comments
 (0)