Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wallet avatar empty address #676

Merged
merged 2 commits into from
Jun 20, 2023
Merged

Conversation

estebanmino
Copy link
Contributor

Fixes BX-####
Figma link (if any):

What changed (plus any additional context for devs)

with the new useEnsAvatar update, empty addresses were displaying an emoji corresponding to '' so i fixed it

before
image

after
image

Screen recordings / screenshots

What to test

Final checklist

  • I have tested my changes in a LavaMoat bundle (yarn build).
  • I have tested my changes in Chrome & Brave.
  • If your changes are visual, did you check both the light and dark themes?

@estebanmino estebanmino marked this pull request as ready for review June 20, 2023 14:57
@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-a1dc8e01e04780e4da22de729342d911a3432ded.zip

@@ -34,7 +34,7 @@ export function WalletAvatar({
overflow: 'hidden',
}}
>
{isFetched ? (
{isFetched && address ? (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't we use isSuccess instead of isFetched?
I'd think if there is no address isSuccess === false && isError === true

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-4ba07ce9d2471929828b6f7b41622d7dfb236a15.zip

@estebanmino estebanmino merged commit 2de8ac5 into master Jun 20, 2023
@estebanmino estebanmino deleted the @esteban/wallet-avatar-fix branch June 20, 2023 19:10
@github-actions
Copy link

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-2de8ac53526a4bfc7de520b8fb4e5763f6e0add0.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants