bugfixing
This commit is contained in:
parent
9dc12f34ed
commit
cea69f9349
@ -250,11 +250,11 @@ async function fetchPortfolio()
|
|||||||
});
|
});
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
try {
|
if (socket) {
|
||||||
//socket?.send('close')
|
if (socket.readyState === WebSocket.OPEN) {
|
||||||
socket?.close();
|
socket.close(); // Close the WebSocket connection
|
||||||
} catch (e) {
|
}
|
||||||
console.log(e);
|
socket = null; // Ensure socket is set to null
|
||||||
}
|
}
|
||||||
|
|
||||||
//$displayCompanyName = '';
|
//$displayCompanyName = '';
|
||||||
|
|||||||
@ -50,8 +50,6 @@ export const load = async ({ parent, params }) => {
|
|||||||
|
|
||||||
output = await response.json();
|
output = await response.json();
|
||||||
|
|
||||||
console.log(output);
|
|
||||||
|
|
||||||
setCache(params.tickerID, output, "getOptionsHistoricalData");
|
setCache(params.tickerID, output, "getOptionsHistoricalData");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user