referrals complete
This commit is contained in:
parent
a97329c121
commit
e47ed1380c
|
|
@ -3,9 +3,9 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev -p 3031",
|
"dev": "next dev -p 3030",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start -p 3031",
|
"start": "next start -p 3030",
|
||||||
"lint": "next lint"
|
"lint": "next lint"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ export default function ReferralSection({
|
||||||
const fetchGames = async () => {
|
const fetchGames = async () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(`https://api.duelfi.io/v1/get_referrals.php?address=${wallet}`);
|
const response = await axios.get(`${API_URL}get_referrals.php?address=${wallet}`);
|
||||||
const gameData = response.data || [];
|
const gameData = response.data || [];
|
||||||
setGamesHistory(gameData);
|
setGamesHistory(gameData);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user