Skip to content

Commit

Permalink
Use also environment variable for the claimed tokens query
Browse files Browse the repository at this point in the history
  • Loading branch information
jagracar committed Sep 24, 2023
1 parent d079c46 commit 323484f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ export async function getDaoTokenBalance(walletAddr: string) {
*/
export async function getClaimedDaoTokens(walletAddr: string) {
const response = await axios.get(
`https://api.tzkt.io/v1/bigmaps/${CLAIMED_DAO_TOKENS_BIGMAP_ID}/keys/${walletAddr}`)
import.meta.env.VITE_TZKT_API + `/v1/bigmaps/${CLAIMED_DAO_TOKENS_BIGMAP_ID}/keys/${walletAddr}`)

return response? parseInt(response.data.value) : 0
}

0 comments on commit 323484f

Please sign in to comment.