From c97b909e987e9fd890f2c7acbe8f22bd8092821c Mon Sep 17 00:00:00 2001 From: OleS Date: Mon, 12 Jan 2026 22:49:53 +0200 Subject: [PATCH] - Fix: no avaialble size fix when no WillFit API parameter --- Virtusize/Sources/Models/VirtusizeServerProduct.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Virtusize/Sources/Models/VirtusizeServerProduct.swift b/Virtusize/Sources/Models/VirtusizeServerProduct.swift index c39e722c..8896cda7 100644 --- a/Virtusize/Sources/Models/VirtusizeServerProduct.swift +++ b/Virtusize/Sources/Models/VirtusizeServerProduct.swift @@ -158,7 +158,7 @@ public class VirtusizeServerProduct: Codable { // For one-size products with body data provided if hasBodyData { // If willFit is true and we have a recommended size, show the will fit message - if bodyProfileWillFit == true { + if bodyProfileWillFit != false { return i18nLocalization.getOneSizeBodyProfileText() } // If willFit is false or no recommended size, show "Your size not found" @@ -187,7 +187,11 @@ public class VirtusizeServerProduct: Codable { // For multi-size products with body data provided if hasBodyData { // If willFit is true and we have a recommended size, show it - if bodyProfileWillFit == true, let bodyProfileRecommendedSizeName = bodyProfileRecommendedSizeName, !bodyProfileRecommendedSizeName.isEmpty { + if + bodyProfileWillFit != false, + let bodyProfileRecommendedSizeName = bodyProfileRecommendedSizeName, + !bodyProfileRecommendedSizeName.isEmpty + { return i18nLocalization.getMultiSizeBodyProfileText(bodyProfileRecommendedSizeName) } // If willFit is false or no recommended size, show "Your size not found"