Skip to content

Commit

Permalink
UPDATE
Browse files Browse the repository at this point in the history
  • Loading branch information
YongZL committed Oct 23, 2024
1 parent 262cc06 commit 8720918
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ const Files = () => {
// const userFriendlyAddress = tonAdd?.account.address && toUserFriendlyAddress(tonAdd.account.address, false)

const getCurrentUserInfo = async () => {
const baseUrl = import.meta.env.VITE_API_BASEURL || ''
setLoading(true)
const url = `https://tonbags-api.crust.network/users?address=${add.address}&page=${pgNum}&pageSize=10`
const url = `${baseUrl}?address=${add.address}&page=${pgNum}&pageSize=10`
if (!add?.address) return
fetch(url, {
headers: { 'Content-Type': 'application/json' }
Expand Down

0 comments on commit 8720918

Please sign in to comment.