Skip to content

Commit

Permalink
restructure rate query
Browse files Browse the repository at this point in the history
  • Loading branch information
Damola18 committed May 13, 2024
1 parent fd0798e commit c44dec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const Home: NextPage = () => {
}))

const { data: iqData } = useGetIqPriceQuery('IQ')
const rate = iqData?.response?.data?.IQ[0]?.quote?.USD?.price || 0.0
const rate = iqData?.response?.data?.[0]?.quote?.USD?.price || 0.0

const priceChange = {
[GraphPeriod.DAY]: marketData?.percent_change_24h,
Expand Down

0 comments on commit c44dec6

Please sign in to comment.