From ea6cc1013146400a541b33bc18d47eeb2bd222a7 Mon Sep 17 00:00:00 2001 From: Melvin Chia Date: Sun, 18 Jan 2026 21:57:01 +0800 Subject: [PATCH] fix(client): correct type definition for quoteQuery in Quotes component --- client/src/core/dashboard/widgets/Quotes.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/core/dashboard/widgets/Quotes.tsx b/client/src/core/dashboard/widgets/Quotes.tsx index e1e8ffe5f..b4ab20b97 100644 --- a/client/src/core/dashboard/widgets/Quotes.tsx +++ b/client/src/core/dashboard/widgets/Quotes.tsx @@ -9,12 +9,12 @@ import tinycolor from 'tinycolor2' import forgeAPI from '@/forgeAPI' export default function Quotes() { - const quoteQuery = useQuery( - forgeAPI.corsAnywhere - .input({ + const quoteQuery = useQuery<{ q: string; a: string }[]>( + forgeAPI + .corsAnywhere({ url: 'https://zenquotes.io/api/random' }) - .queryOptions() + .queryOptions() as never ) const { derivedThemeColor: themeColor } = usePersonalization()