diff --git a/instances/treasury-devdao.near/widget/components/BalanceBanner.jsx b/instances/treasury-devdao.near/widget/components/BalanceBanner.jsx index dc9a0681..f22d0927 100644 --- a/instances/treasury-devdao.near/widget/components/BalanceBanner.jsx +++ b/instances/treasury-devdao.near/widget/components/BalanceBanner.jsx @@ -71,12 +71,15 @@ function BalanceBanner({ accountId, treasuryDaoID }) { const profile = Social.getr(`${accountId}/profile`); const name = profile.name ?? accountId; + return ( {!nearBalances || - parseFloat(nearBalances?.availableParsed) > LOW_BALANCE_LIMIT ? ( + !nearBalances.availableParsed || + nearBalances.availableParsed === "0.00" || + parseFloat(nearBalances.availableParsed) > LOW_BALANCE_LIMIT ? ( <> - ) : parseFloat(nearBalances?.availableParsed) < + ) : parseFloat(nearBalances.availableParsed) < INSUFFICIENT_BALANCE_LIMIT ? (
diff --git a/instances/treasury-devdao.near/widget/pages/stake-delegation/CreateButton.jsx b/instances/treasury-devdao.near/widget/pages/stake-delegation/CreateButton.jsx index e7d87b26..9c101231 100644 --- a/instances/treasury-devdao.near/widget/pages/stake-delegation/CreateButton.jsx +++ b/instances/treasury-devdao.near/widget/pages/stake-delegation/CreateButton.jsx @@ -129,7 +129,7 @@ const CreateBtn = () => { display: block; opacity: 1; transform: translateY(0); - z-index:9999; + z-index:1000; } } diff --git a/playwright-tests/tests/stake-delegation/stake-delegation.spec.js b/playwright-tests/tests/stake-delegation/stake-delegation.spec.js index 9162f83d..b4ee69a1 100644 --- a/playwright-tests/tests/stake-delegation/stake-delegation.spec.js +++ b/playwright-tests/tests/stake-delegation/stake-delegation.spec.js @@ -430,6 +430,7 @@ test.describe("Have valid staked requests and sufficient token balance", functio await expect( await page.locator("div").filter({ hasText: /^Stake Delegation$/ }) ).toBeVisible(); + await page.waitForTimeout(5_000); }); test.describe("User not logged in", function () {