This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

[BUG] Clicking on "Available" badges goes into a blank page

Former Member
Former Member

How to reproduce -> Check video

Or just go to Badges and click available.

  • [{"badgeId":106,"badgeKey":"steps_60day_goal","badgeName":"60-Day Goal Getter","badgeCategoryId":5,"badgeDifficultyId":4,"badgePoints":8,"badgeTypeIds":[3,4],"badgeSeriesId":13,"badgeStartDate":"2018-04-03T00:00:00.0","badgeEndDate":null,"userProfileId":9620166,"fullName":"","displayName":"majkim6","badgeEarnedDate":null,"badgeEarnedNumber":null,"badgeIsViewed":false,"badgeProgressValue":20.0,"badgeTargetValue":60.0,"badgeUnitId":4,"badgeAssocTypeId":5,"badgeAssocDataId":null,"badgeAssocDataName":null,"earnedByMe":false,"currentPlayerType":null,"userJoined":null,"relatedBadges":null,"connectionNumber":null,"connections":null}]

  • Well, I can fix it with local overrides, by inserting a small change into the line 748 of the JavaScript chunk file 23.438d857f.chunk.js:

    Original code:
    , b = c ? u(s) : o(a.badgeUnitId, n.badgeUnits);
    
    After editing:
    , b = c ? u(s) : (typeof n !== 'undefined')? o(a.badgeUnitId, n.badgeUnits) : null;

    You can report it to Garmin support, and tell them that the object 'n' is empty (and hence triggering the runtime error shown on the console) when one of the badges 60-Day Goal Getter or 10K a Day Challenge, are still available. The error is not being triggered when you already own both badges (that's why I was unable to reproduce it).

    If you are using GCOverrides with other bugfixes and enhancements, I could add the fix to it too.

  • Thanks! I'll report it.