mozilla / sumo

Project management board for SUMO and Community properties.
Mozilla Public License 2.0
13 stars 5 forks source link

Error in console when loading Mozilla VPN Support page #1716

Closed JC-Support closed 1 month ago

JC-Support commented 6 months ago

Describe the bug VPN QA reports seeing a console error when loading the VPN support landing page.

Preconditions Have Firefox installed on your desktop device.

Steps to reproduce Steps to reproduce the behavior:

  1. Open the page https://support.mozilla.org/en-US/products/firefox-private-network-vpn
  2. Check the console;
  3. Observe the error in the console

Expected behavior No errors appear in the console.

Actual behavior Uncaught TypeError: e is undefined" error appears in the console.

Screenshots/Screencasts SUMOVPNerror

Desktop (please complete the following information):

Additional context Was able to reproduce on Mac OS and Windows Devices. Couldn't test on mobile.

escattone commented 2 months ago

This is caused by sloppy JS code in our products.js file that doesn't check if latestVersion is defined. The fix is super simple. I'll have a PR ready tomorrow morning, which will also include converting products.js to vanilla JS that doesn't depend on jQuery.

emilghittasv commented 2 months ago

I can confirm that this issue is verified fixed in stage.

Moving this ticket inside the release column.