From 3ac8956926e9a04ea6fc9e4261eddd100e3c8a08 Mon Sep 17 00:00:00 2001 From: "Chuma Mcphoy (We Ahead)" Date: Fri, 19 Dec 2025 13:28:03 +0000 Subject: [PATCH] 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 --- .../Blocks/DynamicContent/Stays/Previous/L6Progress/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/L6Progress/index.tsx b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/L6Progress/index.tsx index 8272d5bee..686cf11d8 100644 --- a/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/L6Progress/index.tsx +++ b/apps/scandic-web/components/Blocks/DynamicContent/Stays/Previous/L6Progress/index.tsx @@ -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 }