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