NaN instead of a number on badge pages

Platform: Macintosh

Browser: Chrome

URL: The URL varies for each user and badge. To see the bug, go to your own badges page, and click on one of your badges.

Screenshot:

Description of problem: This problem occurs on the forum. On the bottom left corner of the page, it should display a number that represents how many times the badge was granted to others, but instead displays NaN.

This may be a problem that is affecting Discourse forums in general. See the screenshot with the same issue from another forum below:

When you press on that gray banner the list of others shows.

1 Like

Yes, the banner does function properly as a link, but normally, the banner itself displays a number instead of NaN.

I just checked my badges using Safari on a Mac, and it has the same problem as Chrome did regarding the numbers.

Perhaps Discourse performed an update that went awry.

Yes, I’d suggest filing this as a bug report with Discourse. There likely isn’t much iNat Staff can do about it.

1 Like

Good idea; have reported it here: Discourse Meta: On some forums, NaN instead of a number on badge pages.

1 Like

Probably. Looks like a type-error in the code (from experience I suspect the type was declared as an integer, but was given numbers in text-form as input, NaN = Not a Number)

2 Likes

A response by user Moin on Discourse Meta suggests that the bug is related to a change to code that …

1 Like