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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user