Skip to content

Commit

Permalink
fix: enddate value format
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Aug 9, 2024
1 parent 249b7ec commit ac60004
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/javascript/app/pages/form/form-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export const FormComponent = () => {
{ text: localize('Payout'), value: 'payout' },
];

const formatEndDate = (date) => moment(date).format('ddd - DD MMM, YYYY');

return (
<BreakpointProvider>
<div className='quill-form-container'>
Expand Down Expand Up @@ -250,7 +252,7 @@ export const FormComponent = () => {
) : (
<DropdownComponent
options={endtime_data.options}
value={expiry_date}
value={formatEndDate(expiry_date)}
onUpdate={onExpiryDateChange}
elementId='expiry_date'
/>
Expand Down

0 comments on commit ac60004

Please sign in to comment.