diff options
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx index 469047afb..35cbd7a41 100644 --- a/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/InputLabel.tsx @@ -90,7 +90,7 @@ interface InputLabelProps { color: Colors; disableAnimation: boolean; disabled: boolean; - error: boolean; + error?: string; focused: boolean; margin: boolean; required: boolean; @@ -104,8 +104,8 @@ export function InputLabel(props: Partial<InputLabelProps>): VNode { <FormLabel data-form-control={!!fcs} data-size={fcs.size} - data-shrink={props.shrink || fcs.filled || fcs.focused} - data-disable-animation={props.disableAnimation} + data-shrink={props.shrink || fcs.filled || fcs.focused ? true : undefined} + data-disable-animation={props.disableAnimation ? true : undefined} data-variant={fcs.variant} class={root} {...props} |