diff options
author | Sebastian <sebasjm@gmail.com> | 2022-10-27 16:06:41 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-10-27 16:06:41 -0300 |
commit | aa6227b2b858d48272129c96fcf3d7fae39bba30 (patch) | |
tree | 6b8d71813fb00236815cecdf45688972b4c01389 /packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx | |
parent | 06ac43b8920fe3154a5c24a18711c9afb2ce9964 (diff) | |
download | wallet-core-aa6227b2b858d48272129c96fcf3d7fae39bba30.tar.xz |
showing error field when there is not account yet
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx index fb2df1cc3..1d4b5eff5 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormLabel.tsx @@ -68,7 +68,7 @@ export function FormLabel({ return ( <label data-focused={fcs.focused} - data-error={fcs.error} + data-error={!fcs.error ? undefined : true} data-disabled={fcs.disabled} class={[_class, root, theme.typography.body1].join(" ")} {...rest} @@ -77,7 +77,9 @@ export function FormLabel({ }} > {children} - {fcs.required && <span data-error={fcs.error}> {"*"}</span>} + {fcs.required && ( + <span data-error={!fcs.error ? undefined : true}> {"*"}</span> + )} </label> ); } |