referrals complete

This commit is contained in:
Sewmina 2025-05-21 19:41:25 +00:00
parent a97329c121
commit e47ed1380c
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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);