bugfixing

This commit is contained in:
MuslemRahimi 2025-01-02 19:58:02 +01:00
parent e3c187d709
commit 1e29257c98
2 changed files with 162 additions and 159 deletions

View File

@ -464,7 +464,10 @@
$: {
if (selectedSector) {
originalTopTickers = [...topSectorTickers[selectedSector]];
displayTopTickers = topSectorTickers[selectedSector];
displayTopTickers =
data?.user?.tier === "Pro"
? displayTopTickers
: displayTopTickers?.slice(0, 3);
}
}
</script>
@ -579,7 +582,6 @@
</thead>
<tbody>
{#each displayTopTickers as item, index}
{#if index < 3}
<tr
class="sm:hover:bg-[#245073] border-b border-gray-800 sm:hover:bg-opacity-[0.2] odd:bg-odd {index +
1 ===
@ -663,7 +665,6 @@
{item?.ivRank}
</td>
</tr>
{/if}
{/each}
</tbody>
</table>

View File

@ -485,6 +485,10 @@
if (selectedSector) {
originalTopTickers = [...topSectorTickers[selectedSector]];
displayTopTickers = topSectorTickers[selectedSector];
displayTopTickers =
data?.user?.tier === "Pro"
? displayTopTickers
: displayTopTickers?.slice(0, 3);
marketTideData =
data?.getData?.marketTide[sectorDict[selectedSector]] || {};
optionsData = marketTideData ? getPlotOptions() : null;
@ -656,7 +660,6 @@
</thead>
<tbody>
{#each displayTopTickers as item, index}
{#if index < 3}
<tr
class="sm:hover:bg-[#245073] border-b border-gray-800 sm:hover:bg-opacity-[0.2] odd:bg-odd {index +
1 ===
@ -740,7 +743,6 @@
{item?.ivRank}
</td>
</tr>
{/if}
{/each}
</tbody>
</table>