From b41d2189bf661aa34df6ee415968306c6838d02c Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Fri, 9 Aug 2024 17:48:05 -0500 Subject: [PATCH] taking out showError for now Signed-off-by: Matt Bruce --- MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift | 3 ++- MVMCoreUI/Atomic/Atoms/Views/CheckboxLabel.swift | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift b/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift index 572a075b..64224f04 100644 --- a/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift +++ b/MVMCoreUI/Atomic/Atoms/Selectors/Checkbox.swift @@ -143,7 +143,8 @@ import VDS MVMCoreDispatchUtility.performBlock(onMainThread: { [weak self] in guard let self = self else { return } let isValid = viewModel.isValid ?? true - showError = !isValid + //TODO: Fix issue with default state + //showError = !isValid isEnabled = viewModel.enabled }) diff --git a/MVMCoreUI/Atomic/Atoms/Views/CheckboxLabel.swift b/MVMCoreUI/Atomic/Atoms/Views/CheckboxLabel.swift index 32e88bf2..3e02b467 100644 --- a/MVMCoreUI/Atomic/Atoms/Views/CheckboxLabel.swift +++ b/MVMCoreUI/Atomic/Atoms/Views/CheckboxLabel.swift @@ -75,7 +75,8 @@ import VDS MVMCoreDispatchUtility.performBlock(onMainThread: { [weak self] in guard let self = self else { return } let isValid = viewModel.checkbox.isValid ?? true - showError = !isValid + //TODO: Fix issue with default state + //showError = !isValid errorText = viewModel.checkbox.errorMessage isEnabled = viewModel.checkbox.enabled })