From ccf862ec86a95e1337381508e53a5139f419f172 Mon Sep 17 00:00:00 2001 From: Alexey Goncharov Date: Thu, 15 Aug 2024 14:48:29 +0100 Subject: [PATCH] Adapty Demo: update support for OnboardingsDatePickerParams --- .../OnboardingsDemo-Adapty/Logic/ViewModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/OnboardingsDemo-Adapty/OnboardingsDemo-Adapty/Logic/ViewModel.swift b/Examples/OnboardingsDemo-Adapty/OnboardingsDemo-Adapty/Logic/ViewModel.swift index 4b1e59c..ef478c5 100644 --- a/Examples/OnboardingsDemo-Adapty/OnboardingsDemo-Adapty/Logic/ViewModel.swift +++ b/Examples/OnboardingsDemo-Adapty/OnboardingsDemo-Adapty/Logic/ViewModel.swift @@ -145,6 +145,6 @@ extension [OnboardingsSelectParams] { extension OnboardingsDatePickerParams { var stringValue: String { - "\(year)-\(String(format: "%.2d", month))-\(String(format: "%.2d", day))" + "\(year ?? 0)-\(String(format: "%.2d", month ?? 0))-\(String(format: "%.2d", day ?? 0))" } }