Skip to content

Commit

Permalink
fixup! front: create AllowanceValueForm to add placeholders in allowa…
Browse files Browse the repository at this point in the history
…nce inputs
  • Loading branch information
clarani committed Nov 6, 2023
1 parent 6f40440 commit 6692c83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default function AllowancesActions({
orientation="right"
sm
condensed
value={allowanceValue}
value={allowanceValue !== undefined ? allowanceValue : ''}
handleType={handleValueAndUnit}
options={unitsList}
typeValue="number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ export default function AllowancesStandardSettings({
orientation="right"
sm
condensed
value={allowanceValue}
value={allowanceValue !== undefined ? allowanceValue : ''}
type={valueAndUnit.value_type}
handleType={handleType}
options={unitsList}
typeValue="number"
min={1}
placeholder={t('translation:common.choose')}
isInvalid={!!allowanceValue && allowanceValue <= 0}
isInvalid={allowanceValue !== undefined && allowanceValue < 1}
textRight
/>
</div>
Expand Down

0 comments on commit 6692c83

Please sign in to comment.