From 6c9c286fdb75d94b2dbb7f2b24252fa7349355f2 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 13 Sep 2024 20:37:21 +0200 Subject: [PATCH] table fix --- src/routes/options-flow/+page.svelte | 9 ++++----- src/routes/stock-screener/[strategyId]/+page.svelte | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/routes/options-flow/+page.svelte b/src/routes/options-flow/+page.svelte index 62635874..75cbb854 100644 --- a/src/routes/options-flow/+page.svelte +++ b/src/routes/options-flow/+page.svelte @@ -550,7 +550,7 @@ function calculateStats(data) { return acc; }, { callVolumeSum: 0, putVolumeSum: 0, bullishCount: 0, bearishCount: 0, neutralCount: 0 }); - if (bullishCount > bearishCount) { + if (bullishCount >= bearishCount) { flowSentiment = 'Bullish'; } else if (bullishCount < bearishCount) { flowSentiment = 'Bearish'; @@ -561,7 +561,6 @@ function calculateStats(data) { } - putCallRatio = callVolumeSum !== 0 ? (putVolumeSum / callVolumeSum) : 0; callPercentage = (callVolumeSum+putVolumeSum) !== 0 ? Math.floor((callVolumeSum)/(callVolumeSum+putVolumeSum)*100) : 0; @@ -884,7 +883,7 @@ $: {
event.preventDefault()}>
@@ -1242,7 +1241,7 @@ $: {
-
+
Add Filters
@@ -1285,7 +1284,7 @@ $: { {#each (searchTerm?.length !== 0 ? filteredRows : allRows) as row, index} - changeRule(row?.rule)} class="hover:bg-[#333333] cursor-pointer"> + changeRule(row?.rule)} class="sm:hover:bg-[#333333] cursor-pointer"> {index+1} {#if ruleOfList.find((rule) => rule?.name === row?.rule)} diff --git a/src/routes/stock-screener/[strategyId]/+page.svelte b/src/routes/stock-screener/[strategyId]/+page.svelte index c5c57243..9c89ea0d 100644 --- a/src/routes/stock-screener/[strategyId]/+page.svelte +++ b/src/routes/stock-screener/[strategyId]/+page.svelte @@ -1219,7 +1219,7 @@ function handleInput(event) {
-
+
Add Filters
@@ -1262,7 +1262,7 @@ function handleInput(event) { {#each (searchTerm?.length !== 0 ? filteredRows : allRows) as row, index} - changeRule(row?.rule)} class="hover:bg-[#333333] cursor-pointer"> + changeRule(row?.rule)} class="sm:hover:bg-[#333333] cursor-pointer"> {index+1} {#if ruleOfList.find((rule) => rule?.name === row?.rule)}