bugfixing

This commit is contained in:
MuslemRahimi 2024-09-17 14:13:08 +02:00
parent fc93259f1e
commit d1a9114da4
2 changed files with 6 additions and 2 deletions

View File

@ -435,12 +435,14 @@
</div>
<div class="text-orange-400 text-xs sm:text-sm mt-2">&#42; This value depends on the forecast</div>
<!--
<div class="mt-5 text-gray-100 text-sm sm:text-[1rem] sm:rounded-lg h-auto border border-slate-800 p-4">
<svg class="w-5 h-5 inline-block mr-0.5 flex-shrink-0" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"
><path fill="#a474f6" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-4 48a12 12 0 1 1-12 12a12 12 0 0 1 12-12m12 112a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 0 16" /></svg
>
For the current Fiscal Year we use available quarterly data. Complete annual data, used to compare against analyst estimates, is only finalized after the year ends.
</div>
-->
{/if}
{:else}
<div class="flex justify-center items-center h-80">

View File

@ -362,7 +362,7 @@ function handleViewData(optionData) {
openPopup?.dispatchEvent(new MouseEvent('click'))
}
/*
function sendMessage(message) {
if (socket && socket.readyState === WebSocket.OPEN) {
socket.send(message);
@ -370,6 +370,8 @@ function sendMessage(message) {
console.error("WebSocket is not open. Unable to send message.");
}
}
*/
async function websocketRealtimeData() {
let newData = [];
try {
@ -482,7 +484,7 @@ onDestroy(async() => {
console.log(e);
}
if (audio) {
audio.pause();
audio?.pause();
audio = null;
}