Fix short entries not showing

closes #839
This commit is contained in:
Matthias 2022-07-03 08:55:28 +02:00
parent 062dc1c3e1
commit 0a13da326b

View File

@ -142,10 +142,8 @@ export default defineComponent({
);
const hasShorts =
props.dataset.enter_short_signals &&
props.dataset.enter_short_signals > 0 &&
props.dataset.exit_short_signals &&
props.dataset.exit_short_signals > 0;
(props.dataset.enter_short_signals && props.dataset.enter_short_signals > 0) ||
(props.dataset.exit_short_signals && props.dataset.exit_short_signals > 0);
const colShortEntryData = props.dataset.columns.findIndex(
(el) => el === '_enter_short_signal_close',
);