Skip to content

Commit

Permalink
fix: timer picker field should display appropriate value for future d…
Browse files Browse the repository at this point in the history
…ates (#18048)

* fix: date picker button not to get disabled in duration param

* fix: show a proper duration field for future exipry

* fix: fixed a typo
  • Loading branch information
vinu-deriv authored Feb 12, 2025
1 parent 03228de commit c31f2e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const DayInput = ({
readOnly
textAlignment='center'
name='time'
value={`${(is_24_hours_contract ? end_time : expiry_time_input) || '23:59:59'} GMT`}
value={`${(is_24_hours_contract ? end_time : isSameDate && expiry_time_input) || '23:59:59'} GMT`}
disabled={!is_24_hours_contract}
onClick={() => {
setOpenTimePicker(true);
Expand Down

0 comments on commit c31f2e8

Please sign in to comment.