Don't throttle Trades list to allow update when bot-comparison selection changes

closes #1282
This commit is contained in:
Matthias 2023-05-28 08:47:47 +02:00
parent 6fe56a857e
commit 6f0ae677df

View File

@ -27,7 +27,7 @@ import {
Trade,
} from '@/types';
import { watchThrottled } from '@vueuse/core';
import { computed, onMounted, ref } from 'vue';
import { computed, onMounted, ref, watch } from 'vue';
use([
BarChart,
@ -258,12 +258,11 @@ watchThrottled(
},
{ throttle: 60 * 1000 },
);
watchThrottled(
watch(
() => props.trades,
() => {
updateChart();
},
{ throttle: 60 * 1000 },
);
</script>