snapshot-labs / sx-monorepo

Snapshot X monorepo
https://docs.snapshotx.xyz
MIT License
11 stars 10 forks source link

fix: Don't show edit profile button if wallet is not connected #430

Closed ChaituVR closed 1 week ago

ChaituVR commented 1 week ago

Summary

Closes: #428

How to test

  1. Go to any space without connecting wallet, you should not see edit profile button after the fix
ChaituVR commented 1 week ago

Nice idea, maybe we can do like this similar to sn to check if these are valid addresses

isAddress(a) && isAddress(b) && a === b;

or

try {
    return getAddress(a) === getAddress(b);
  } catch {
    return false;
  }