This commit is contained in:
Sewmina 2024-10-03 15:16:53 +05:30
parent e61d4555de
commit f99940fde6

View File

@ -61,7 +61,7 @@ export default function DashboardPage() {
}
async function handleWalletClick(address: string) {
setActiveWallet(address);
const url = `http://vps.playpoolstudios.com/metahunt/api/launcher/set_wallet.php?id=${user?.id}&wallet=${address}`;
const url = `https://vps.playpoolstudios.com/metahunt/api/launcher/set_wallet.php?id=${user?.id}&wallet=${address}`;
const response = await fetch(url);
console.log(url);
@ -103,7 +103,7 @@ export default function DashboardPage() {
async function fetchVaultData() {
if (user?.id) {
try {
const response = await fetch(`http://vps.playpoolstudios.com/metahunt/api/launcher/get_vault.php?id=${user?.id}`);
const response = await fetch(`https://vps.playpoolstudios.com/metahunt/api/launcher/get_vault.php?id=${user?.id}`);
const data = await response.json();
setVaultData({ prehp: data.prehp, vc: data.vc });
} catch (error) {
@ -130,7 +130,7 @@ export default function DashboardPage() {
async function autoSetActiveWallet(){
try {
const response = await fetch(`http://vps.playpoolstudios.com/metahunt/api/launcher/get_active_wallet.php?id=${user?.id}`);
const response = await fetch(`https://vps.playpoolstudios.com/metahunt/api/launcher/get_active_wallet.php?id=${user?.id}`);
const activeWalletString = await response.text();
wallets.forEach((element)=>{
if(element.address == activeWalletString){