diff --git a/src/market/scan/ScanResultTable.vue b/src/market/scan/ScanResultTable.vue index a8cb33c..938c126 100644 --- a/src/market/scan/ScanResultTable.vue +++ b/src/market/scan/ScanResultTable.vue @@ -50,7 +50,7 @@ const { sortedArray, headerProps } = useSort(computed(() => props.items .map(r => { const quartils = getHistoryQuartils(r.history, days.value); const profit = quartils.q1 === 0 || quartils.q3 === 0 ? 0 : marketTaxStore.calculateProfit(quartils.q1, quartils.q3); - const score = profit <= 0 ? 0 : Math.sqrt(quartils.totalVolume * r.sell * profit / Math.log(r.orderCount + 1)); + const score = profit <= 0 ? 0 : Math.sqrt(quartils.totalVolume * r.sell * profit / Math.max(1, r.orderCount)); return { type: r.type,