Skip to content

Commit

Permalink
Merge pull request #626 from alleslabs/fix/val-image
Browse files Browse the repository at this point in the history
fix: val image
  • Loading branch information
songwongtp authored Nov 15, 2023
2 parents b15e37a + 02f0cf9 commit 4a4046b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Bug fixes

- [#626](https://github.com/alleslabs/celatone-frontend/pull/626) Fix handle validator image
- [#570](https://github.com/alleslabs/celatone-frontend/pull/570) Use native tokens in attached funds
- [#567](https://github.com/alleslabs/celatone-frontend/pull/567) Fix attached funds in code snippet
- [#539](https://github.com/alleslabs/celatone-frontend/pull/539) Fix JSON schema upload text
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/ValidatorBadge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const ValidatorBadge = ({
alt={validator.moniker}
borderRadius="50%"
fallbackSrc={validatorDefaultImg.src}
fallbackStrategy="onError"
fallbackStrategy="beforeLoadOrError"
/>
)}
<Flex direction="column">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/services/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const resolveValIdentity = async (
.catch(async (_) => {
if (validator.identity) {
const { data } = await axios.get(keybaseUrl);
return data.them[0].pictures.primary.url;
if (data.them.length) return data.them[0].pictures.primary.url;
}
return uiAvatarsUrl;
})
Expand Down

3 comments on commit 4a4046b

@vercel
Copy link

@vercel vercel bot commented on 4a4046b Nov 15, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 4a4046b Nov 15, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 4a4046b Nov 15, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.