Skip to content

Commit

Permalink
chore(line-chart): switch to cgk public api
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Jan 9, 2024
1 parent 08548a1 commit 1c10af4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hooks/useCoingeckoAPI.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { COINGECKO_API_URL, COINGECKO_BFF_API_URL } from 'constants/index'
import { useSessionInfo } from 'state/authen/hooks'
import { COINGECKO_API_URL } from 'constants/index'

export default function useCoingeckoAPI() {
const { authenticationSuccess } = useSessionInfo()
return authenticationSuccess ? COINGECKO_BFF_API_URL : COINGECKO_API_URL
return COINGECKO_API_URL
// const { authenticationSuccess } = useSessionInfo()
// return authenticationSuccess ? COINGECKO_BFF_API_URL : COINGECKO_API_URL
}

0 comments on commit 1c10af4

Please sign in to comment.