chore(FE-40): render error message if isError and errorMessage exist

This commit is contained in:
ValdiANS
2025-10-09 10:04:20 +07:00
parent 764dacc627
commit 9b13ce2be6
+3 -1
View File
@@ -122,7 +122,9 @@ const TextInput = ({
{!isError && bottomLabel && (
<p className='w-full text-sm opacity-60'>{bottomLabel}</p>
)}
{isError && <p className='w-full text-sm text-error'>{errorMessage}</p>}
{isError && errorMessage && (
<p className='w-full text-sm text-error'>{errorMessage}</p>
)}
</div>
);
};