NaN count on the notifications

Created on 1 August 2023, 11 months ago
Updated 30 August 2023, 10 months ago

Problem/Motivation

Steps to reproduce: When you click on a notification and the counter is 0, the notifaction message says "You have NaN unread notifications" instead of "You have no unread notifications".

Resolution: Adding a validation at the begging of the function itemsStatusChanged() in the notification.js can fix this. Basically if we validate the notificationCount to see if it is a number or a NaN, and give it a 0 value if it is a NaN; we are going to see the correct message on the notification.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇷Costa Rica AlbertoUO

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024