Skip to content

Commit 3cbca7a

Browse files
committed
[Fix] Custom separator resets to default
1 parent 02591b0 commit 3cbca7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Datepicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const Datepicker: React.FC<Props> = ({
219219
});
220220
setInputText(
221221
`${formatDate(startDate, displayFormat)}${
222-
asSingle ? "" : ` ~ ${formatDate(endDate, displayFormat)}`
222+
asSingle ? "" : ` ${separator} ${formatDate(endDate, displayFormat)}`
223223
}`
224224
);
225225
}

0 commit comments

Comments
 (0)