Merged in fix/LOY-511-handle-undefined-case (pull request #3377)

fix(LOY-511): handle undefined case

* fix(LOY-511): handle undefined case

* chore(LOY-511): add comment


Approved-by: Christel Westerberg
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-12-19 13:28:03 +00:00
parent c21aa2dc73
commit 3ac8956926

View File

@@ -30,7 +30,8 @@ export async function L6Progress() {
const nightsToTopTier = user?.membership?.nightsToTopTier
if (nightsToTopTier == null) {
// A simple falsy check won't work here as we want to pass through 0.
if (nightsToTopTier === null || nightsToTopTier === undefined) {
return null
}