Skip to content

Commit

Permalink
Fix after review typos optionnal => optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet committed Dec 9, 2020
1 parent 8954c6c commit 776bfc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ export const PackagePolicyInputVarField: React.FunctionComponent<{
);
}, [isInvalid, multi, onChange, type, value, fieldLabel]);

// Boolean cannot be optionnal by default set to false
const isOptionnal = type !== 'bool' && !required;
// Boolean cannot be optional by default set to false
const isOptional = type !== 'bool' && !required;

return (
<EuiFormRow
isInvalid={isInvalid}
error={errors}
label={fieldLabel}
labelAppend={
isOptionnal ? (
isOptional ? (
<EuiText size="xs" color="subdued">
<FormattedMessage
id="xpack.fleet.createPackagePolicy.stepConfigure.inputVarFieldOptionalLabel"
Expand Down

0 comments on commit 776bfc2

Please sign in to comment.