Skip to content

Commit 36ad0af

Browse files
committed
dont round up w/o param
1 parent eadbaea commit 36ad0af

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/lib/buy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ async function placeBuyOrder(props: PlaceBuyOrderArguments) {
9292
return logAndQuit("Invalid duration");
9393
}
9494

95-
const startDate = start
96-
? chrono.parseDate(start)
97-
: dayjs().add(1, "hour").toDate();
95+
const startDate = start ? chrono.parseDate(start) : new Date();
9896
if (!startDate) {
9997
return logAndQuit("Invalid start date");
10098
}

0 commit comments

Comments
 (0)