diff --git a/widget/page/stake/Index.tsx b/widget/page/stake/Index.tsx index c74f19cd..7f1e40c7 100644 --- a/widget/page/stake/Index.tsx +++ b/widget/page/stake/Index.tsx @@ -82,19 +82,31 @@ const userLoggedIn = context.accountId; if (!userLoggedIn) { return ( - -
- - Please login to continue! - } /> - +
+
+
Sign in to start using near.social
+
+ +
- +
); + // return ( + // + //
+ // + // Please login to continue! + // } + // /> + // + //
+ //
+ // ); } const balanceResp = fetch( - `https://api3.nearblocks.io/v1/account/${userLoggedIn}` + `https://api3.nearblocks.io/v1/account/${userLoggedIn}`, ); const nearBalance = Big(balanceResp?.body?.account?.[0]?.amount ?? "0") .div(Big(10).pow(24)) @@ -117,7 +129,7 @@ const unstakedBalance = convertAmountToReadableFormat(unstakedBalanceResp); const allowedToWithdraw = Near.view( account, "is_account_unstaked_balance_available", - { account_id: userLoggedIn } + { account_id: userLoggedIn }, ); const Container = styled.div`