Skip to content

Commit

Permalink
crash fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
ankushKun committed Jun 20, 2024
1 parent a6d4166 commit 52ec6d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion next_app/src/components/bottom-statusbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default function BottomStatusbar() {

useEffect(() => {
if (autoconnect) {
if (!mounted)
if (!window.arweaveWallet)
{toast.error("No Arweave wallet found, please install ArConnect and try again");return}
if (!mounted)
window.arweaveWallet.getActiveAddress().then((addr: string) => {
connectWallet()
setMounted(true);
Expand Down

0 comments on commit 52ec6d5

Please sign in to comment.