Skip to content

Commit 7161965

Browse files
MelvinBotfrancoisl
andcommitted
Allow decimal values in Chronos Schedule OOO duration input
Change decimals prop from 0 to 2 on the AmountForm component in ChronosScheduleOOOPage to allow users to enter non-round duration amounts like 1.5 hours. The existing validation regex already supports decimal values. Co-authored-by: Francois Laithier <francoisl@users.noreply.github.com>
1 parent 9a23626 commit 7161965

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/ChronosScheduleOOOPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function ChronosScheduleOOOPage({route}: ChronosScheduleOOOPageProps) {
156156
currencyButtonLabel={durationUnitButtonLabel}
157157
currencyButtonAccessibilityLabel={`${translate('common.select')}, ${durationUnitButtonLabel}`}
158158
currency={CONST.CURRENCY.USD}
159-
decimals={0}
159+
decimals={2}
160160
onCurrencyButtonPress={() => setIsDurationUnitModalVisible(true)}
161161
isCurrencyPressable
162162
/>

0 commit comments

Comments
 (0)