From 86cc1400870875292d35b14f5dbf67f0c88f48b2 Mon Sep 17 00:00:00 2001 From: Your name Date: Sun, 26 Mar 2023 01:11:40 +0100 Subject: [PATCH] fix: update fetch to fit `ts-reset` --- src/store/slices/QuotesSlice.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/slices/QuotesSlice.ts b/src/store/slices/QuotesSlice.ts index 4b20c87..9bc431b 100644 --- a/src/store/slices/QuotesSlice.ts +++ b/src/store/slices/QuotesSlice.ts @@ -43,7 +43,8 @@ const createQuotesSlice: StateCreator = (set, get) => ({ get().quoteKeywords.join("|") ) .then((response) => response.json()) - .then((data: QuotableReturn) => { + .then((json) => { + const data = json as QuotableReturn; set((state) => ({ quote: { id: data._id,