diff --git a/hosta-admin-prod-1054.zip b/hosta-admin-prod-1054.zip deleted file mode 100644 index dcf6447..0000000 Binary files a/hosta-admin-prod-1054.zip and /dev/null differ diff --git a/src/routes/user/change/[userToken]/+page.svelte b/src/routes/user/change/[userToken]/+page.svelte index 63f4c57..6f8434c 100644 --- a/src/routes/user/change/[userToken]/+page.svelte +++ b/src/routes/user/change/[userToken]/+page.svelte @@ -21,7 +21,8 @@ value_role, userData.bid, userData.payout_bid, - userData.deposit_address + userData.deposit_address, + userData.insurance ); function checkFields( @@ -31,11 +32,12 @@ role, bid, payout_bid, - deposit_address + deposit_address, + insurance ) { // balance = Number(balance); // bid = Number(balance); - console.log(name, surname, balance, role, bid, payout_bid); + console.log(name, surname, balance, role, bid, payout_bid, insurance); if (isStringEmptyOrSpaces(name) || name.length < 2) { canChangeUser = false; @@ -49,6 +51,10 @@ canChangeUser = false; return; } + if ((insurance !== 0 && !insurance) || insurance < 0) { + canChangeUser = false; + return; + } if (isStringEmptyOrSpaces(surname) || surname.length < 2) { canChangeUser = false; return; @@ -84,6 +90,7 @@ bid: userData.bid.toString(), payout_bid: userData.payout_bid.toString(), deposit_address: userData.deposit_address, + insurance: userData.insurance.toString(), }, makeAuthHeaderForAxios(getAuthInfo()?.a) ); @@ -136,6 +143,15 @@ class="grow text-lg text-info" /> +
Заморожено:
+Страховка:
{userData?.insurance} USDT