Skip to content

Commit

Permalink
fix: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
enzomerca committed Aug 13, 2024
1 parent 9462e41 commit 9fb1f1d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions react/utils/metrics/createQuote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ const fetchMetricsData = async (
throw new Error('Graphql Errors when trying get quote and user data')
}

const quoteResult = data?.getQuote as QuoteMetricsData

return {
...quoteResult,
}
return data?.getQuote as QuoteMetricsData
}

const buildCreateQuoteMetric = async (
Expand Down

0 comments on commit 9fb1f1d

Please sign in to comment.