code clean up + claimcomponent value update#

This commit is contained in:
EmberSpirit
2023-10-06 16:14:18 +02:00
parent dd7a0a113d
commit ea60d365d5
2 changed files with 54 additions and 19 deletions
+2 -1
View File
@@ -128,6 +128,7 @@ function openUnstake() {
async function stakeAndClaimAllRounds() {
try {
const unclaimedRewards = walletStore.memeToken?.unclaimedRewards;
stateClaim.value = 2;
console.log("tokenNumber.value", tokenNumber.value);
console.log("walletStore.memeToken?.unclaimedRewards", walletStore.memeToken?.unclaimedRewards);
@@ -140,7 +141,7 @@ async function stakeAndClaimAllRounds() {
stateClaim.value = 4;
await walletStore.loadWalletData();
showSuccessToast(
walletStore.memeToken?.unclaimedRewards,
unclaimedRewards,
"Success!",
"You just claimed and staked",
"Join the next cycle to increase your rewards and win with your clan"