Skip to content

Commit

Permalink
fix: update fetch to fit ts-reset
Browse files Browse the repository at this point in the history
  • Loading branch information
Code-Victor committed Mar 26, 2023
1 parent 2a084e3 commit 86cc140
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store/slices/QuotesSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const createQuotesSlice: StateCreator<QuotesSlice> = (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,
Expand Down

0 comments on commit 86cc140

Please sign in to comment.