endValue handling if no trade close_timestamp

This commit is contained in:
me 2022-08-02 11:57:05 +03:00
parent c15e0edee5
commit 098ef58a5d

View File

@ -457,7 +457,9 @@ export default defineComponent({
const navigateChartToTrade = (trade: Trade) => {
sliderPosition.value = {
startValue: trade.open_timestamp,
endValue: trade.close_timestamp,
endValue: trade.close_timestamp
? trade.close_timestamp
: trade.open_timestamp + 3 * 60 * 60 * 1000,
};
};