Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 7173d83

Browse files
authored
Merge pull request #1584 from mahdiyeh-fs/fix_duration_unit
Mahdiyeh/Fix: duration_unit and contract_type for Oil/USD sybol
2 parents f8f4534 + d81064a commit 7173d83

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/trade/tradeDialog.es6

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,11 @@ function init_state(available,root, dialog, symbol, contracts_for_spot) {
543543
return { text, value: date };
544544
});
545545

546-
if (spot_starting_options) start_dates.unshift({ text: 'Now', value: 'now' });
547-
546+
if (spot_starting_options) {
547+
start_dates.unshift({ text: 'Now', value: 'now' });
548+
} else {
549+
state.date_start.value = start_dates[0].value;
550+
}
548551
const { value: selected_date } = state.date_start;
549552

550553
const options = {

0 commit comments

Comments
 (0)