- {/if}
+
+ {/if}
+ {:else}
+
diff --git a/src/lib/components/TARating.svelte b/src/lib/components/TARating.svelte
index e879e5a0..1c4401e8 100644
--- a/src/lib/components/TARating.svelte
+++ b/src/lib/components/TARating.svelte
@@ -78,7 +78,6 @@ async function getTaRating(ticker) {
else {
$taRatingComponent = false;
}
- console.log($taRatingComponent)
}
diff --git a/src/lib/store.ts b/src/lib/store.ts
index db107181..4f88e588 100644
--- a/src/lib/store.ts
+++ b/src/lib/store.ts
@@ -80,6 +80,7 @@ export const governmentContractComponent= writable(
(false));
export const analystInsightComponent= writable((false));
export const swapComponent= writable((false));
export const taRatingComponent= writable((false));
+export const dcfComponent= writable((false));
diff --git a/src/routes/stocks/[tickerID]/+layout.server.ts b/src/routes/stocks/[tickerID]/+layout.server.ts
index 432e0c59..eff1c6ae 100644
--- a/src/routes/stocks/[tickerID]/+layout.server.ts
+++ b/src/routes/stocks/[tickerID]/+layout.server.ts
@@ -134,7 +134,6 @@ export const load = async ({ params, locals, cookies, setHeaders}) => {
const promises = [
- fetchData(apiURL,apiKey, '/fair-price',params.tickerID),
fetchData(apiURL,apiKey, '/similar-stocks',params.tickerID),
fetchData(apiURL,apiKey, '/stockdeck',params.tickerID),
fetchData(apiURL,apiKey, '/stock-correlation',params.tickerID),
@@ -150,7 +149,6 @@ export const load = async ({ params, locals, cookies, setHeaders}) => {
];
const [
- getFairPrice,
getSimilarStock,
getStockDeck,
getCorrelation,
@@ -172,7 +170,6 @@ export const load = async ({ params, locals, cookies, setHeaders}) => {
return {
- getFairPrice,
getSimilarStock,
getStockDeck,
getCorrelation,
diff --git a/src/routes/stocks/[tickerID]/+page.svelte b/src/routes/stocks/[tickerID]/+page.svelte
index 5fd488f3..f569522f 100644
--- a/src/routes/stocks/[tickerID]/+page.svelte
+++ b/src/routes/stocks/[tickerID]/+page.svelte
@@ -3,7 +3,7 @@
import {AreaSeries, Chart, PriceLine, CandlestickSeries} from 'svelte-lightweight-charts';
import { TrackingModeExitMode } from 'lightweight-charts';
- import {getCache, setCache, taRatingComponent, swapComponent, analystInsightComponent, governmentContractComponent, optionsNetFlowComponent, impliedVolatilityComponent, borrowedShareComponent, clinicalTrialComponent, optionComponent, failToDeliverComponent, marketMakerComponent, analystEstimateComponent, sentimentComponent, screenWidth, displayCompanyName, numberOfUnreadNotification, globalForm, varComponent, shareStatisticsComponent, enterpriseComponent, darkPoolComponent, retailVolumeComponent, shareholderComponent, trendAnalysisComponent, revenueSegmentationComponent, priceAnalysisComponent, fundamentalAnalysisComponent, isCrosshairMoveActive, realtimePrice, priceIncrease, currentPortfolioPrice, currentPrice, stockTicker, isOpen, isBeforeMarketOpen, isWeekend} from '$lib/store';
+ import {getCache, setCache, dcfComponent, taRatingComponent, swapComponent, analystInsightComponent, governmentContractComponent, optionsNetFlowComponent, impliedVolatilityComponent, borrowedShareComponent, clinicalTrialComponent, optionComponent, failToDeliverComponent, marketMakerComponent, analystEstimateComponent, sentimentComponent, screenWidth, displayCompanyName, numberOfUnreadNotification, globalForm, varComponent, shareStatisticsComponent, enterpriseComponent, darkPoolComponent, retailVolumeComponent, shareholderComponent, trendAnalysisComponent, revenueSegmentationComponent, priceAnalysisComponent, fundamentalAnalysisComponent, isCrosshairMoveActive, realtimePrice, priceIncrease, currentPortfolioPrice, currentPrice, stockTicker, isOpen, isBeforeMarketOpen, isWeekend} from '$lib/store';
import { onDestroy, onMount } from 'svelte';
import BullBearSay from '$lib/components/BullBearSay.svelte';
import CommunitySentiment from '$lib/components/CommunitySentiment.svelte';
@@ -16,7 +16,6 @@
let displayChartType = 'line';
let stockDeck = data?.getStockDeck ?? [];
- let fairPrice = data?.getFairPrice ?? [];
let correlationList = data?.getCorrelation?.correlation ?? [];
let prePostData = {};
let similarstock = [];
@@ -664,7 +663,6 @@ function changeChartType() {
output = null;
- fairPrice = data?.getFairPrice;
stockDeck = data?.getStockDeck;
correlationList = data?.getCorrelation?.correlation;
marketMoods = data?.getBullBearSay;
@@ -1434,14 +1432,11 @@ function changeChartType() {
-
-
-
- {#await import('$lib/components/DCF.svelte') then {default: Comp}}
-
- {/await}
-
-
+
+
+ {#await import('$lib/components/DCF.svelte') then {default: Comp}}
+
+ {/await}