Skip to content

Commit

Permalink
668/fix avatar name (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuash committed Jan 25, 2022
1 parent 1f7ade8 commit 266ee15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Unreleased
# base-v1.10.0 - 2021-01-25

## Changes
- Optimized initial loading by setting basic details first then profiles after ([\#629](https://github.com/forbole/big-dipper-2.0-cosmos/issues/629))
Expand All @@ -9,6 +9,7 @@
- Fix validator anc account details possible infinite load due to dayjs in hook
- Add description sanitization to proposals list ([\#666](https://github.com/forbole/big-dipper-2.0-cosmos/issues/666))
- Fix pagination hook page callback ([\#667](https://github.com/forbole/big-dipper-2.0-cosmos/issues/667))
- Show address if name or moniker is empty ([\#668](https://github.com/forbole/big-dipper-2.0-cosmos/issues/668))

## Migration

Expand Down
4 changes: 2 additions & 2 deletions src/recoil/profiles/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const getProfile = (address: string) => ({ get }): AvatarName => {
const imageUrl = R.pathOr('', ['imageUrl'], state);
return ({
address: returnAddress,
name,
name: name.length ? name : address,
imageUrl,
});
};
Expand All @@ -98,7 +98,7 @@ const getProfiles = (addresses: string[]) => ({ get }): AvatarName[] => {
const imageUrl = R.pathOr('', ['imageUrl'], state);
return ({
address: returnAddress,
name,
name: name.length ? name : x,
imageUrl,
});
});
Expand Down

0 comments on commit 266ee15

Please sign in to comment.