From 0a6fadec672367f8a50d0112bd0c28fd700c8ed8 Mon Sep 17 00:00:00 2001 From: Kashif Date: Mon, 15 Jul 2024 13:33:51 +0530 Subject: [PATCH] refactor(payout): resolve more comments --- src/Components/InputField.res | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Components/InputField.res b/src/Components/InputField.res index 47334db36..22da6e237 100644 --- a/src/Components/InputField.res +++ b/src/Components/InputField.res @@ -143,12 +143,15 @@ let make = ( />
{rightIcon}
- {switch errorString { - | Some(val) => - String.length > 0}> -
Option.getOr("")}`}> {React.string(val)}
-
- | None => React.null - }} + { + let errorClases = errorStringClasses->Option.getOr("") + switch errorString { + | Some(val) => + String.length > 0}> +
{React.string(val)}
+
+ | None => React.null + } + } }