Invalid cookie value causes an error #782
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟨 priority: medium
Not blocking but should be addressed soon
🧱 stack: frontend
Related to the Nuxt frontend
🐛 tooling: sentry
Sentry issue
Projects
Sentry link
https://openverse.sentry.io/share/issue/c41b0e537c444afdaa5e2a8f12f6807e/
Description
TypeError: this.dismissedBanners.includes is not a function
is caused by the code that tries to show the translation banner if it hadn't been dismissed when the cookie value is invalidReproduction
Go to Openverse.org. Set a numeric value for the
uiDismissedBanner
cookie, and reload the page. You should see a Nuxt gray error screen.The text was updated successfully, but these errors were encountered: