From 9b13ce2be617fe3c61ad22d29cffe0cd99fb40a9 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 9 Oct 2025 10:04:20 +0700 Subject: [PATCH] chore(FE-40): render error message if isError and errorMessage exist --- src/components/input/TextInput.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/input/TextInput.tsx b/src/components/input/TextInput.tsx index 4a1cecd2..eec312c1 100644 --- a/src/components/input/TextInput.tsx +++ b/src/components/input/TextInput.tsx @@ -122,7 +122,9 @@ const TextInput = ({ {!isError && bottomLabel && (

{bottomLabel}

)} - {isError &&

{errorMessage}

} + {isError && errorMessage && ( +

{errorMessage}

+ )} ); };