https
This commit is contained in:
parent
e61d4555de
commit
f99940fde6
|
|
@ -61,7 +61,7 @@ export default function DashboardPage() {
|
||||||
}
|
}
|
||||||
async function handleWalletClick(address: string) {
|
async function handleWalletClick(address: string) {
|
||||||
setActiveWallet(address);
|
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);
|
const response = await fetch(url);
|
||||||
console.log(url);
|
console.log(url);
|
||||||
|
|
||||||
|
|
@ -103,7 +103,7 @@ export default function DashboardPage() {
|
||||||
async function fetchVaultData() {
|
async function fetchVaultData() {
|
||||||
if (user?.id) {
|
if (user?.id) {
|
||||||
try {
|
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();
|
const data = await response.json();
|
||||||
setVaultData({ prehp: data.prehp, vc: data.vc });
|
setVaultData({ prehp: data.prehp, vc: data.vc });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
@ -130,7 +130,7 @@ export default function DashboardPage() {
|
||||||
|
|
||||||
async function autoSetActiveWallet(){
|
async function autoSetActiveWallet(){
|
||||||
try {
|
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();
|
const activeWalletString = await response.text();
|
||||||
wallets.forEach((element)=>{
|
wallets.forEach((element)=>{
|
||||||
if(element.address == activeWalletString){
|
if(element.address == activeWalletString){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user