From 71790f346e2b88ff87241bb65a9e45a698ccbf38 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Thu, 9 Apr 2026 19:21:40 +0530 Subject: [PATCH] feat(app): lint & beautify --- next.config.mjs | 11 ++++++++--- src/components/Widgets/Stock.tsx | 12 ++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index c82fdf27..005e15e3 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -11,7 +11,12 @@ const nextConfig = { }, ], }, - serverExternalPackages: ['pdf-parse', 'playwright', 'officeparser', 'file-type'], + serverExternalPackages: [ + 'pdf-parse', + 'playwright', + 'officeparser', + 'file-type', + ], outputFileTracingIncludes: { '/api/**': [ './node_modules/@napi-rs/canvas/**', @@ -23,8 +28,8 @@ const nextConfig = { NEXT_PUBLIC_VERSION: pkg.version, }, turbopack: { - root: process.cwd() - } + root: process.cwd(), + }, }; export default nextConfig; diff --git a/src/components/Widgets/Stock.tsx b/src/components/Widgets/Stock.tsx index 57fba1af..22c3e314 100644 --- a/src/components/Widgets/Stock.tsx +++ b/src/components/Widgets/Stock.tsx @@ -257,21 +257,21 @@ const Stock = (props: StockWidgetProps) => { const isPostMarket = props.marketState === 'POST'; const displayPrice = isPostMarket - ? props.postMarketPrice ?? props.regularMarketPrice + ? (props.postMarketPrice ?? props.regularMarketPrice) : isPreMarket - ? props.preMarketPrice ?? props.regularMarketPrice + ? (props.preMarketPrice ?? props.regularMarketPrice) : props.regularMarketPrice; const displayChange = isPostMarket - ? props.postMarketChange ?? props.regularMarketChange + ? (props.postMarketChange ?? props.regularMarketChange) : isPreMarket - ? props.preMarketChange ?? props.regularMarketChange + ? (props.preMarketChange ?? props.regularMarketChange) : props.regularMarketChange; const displayChangePercent = isPostMarket - ? props.postMarketChangePercent ?? props.regularMarketChangePercent + ? (props.postMarketChangePercent ?? props.regularMarketChangePercent) : isPreMarket - ? props.preMarketChangePercent ?? props.regularMarketChangePercent + ? (props.preMarketChangePercent ?? props.regularMarketChangePercent) : props.regularMarketChangePercent; const changeColor = isPositive