Skip to content

Commit

Permalink
fix: rename fct
Browse files Browse the repository at this point in the history
  • Loading branch information
sahar-fehri committed Sep 10, 2024
1 parent 8aac12e commit 8d7d88e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/components/ui/identicon/identicon.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ const getStyles = (diameter) => ({
width: diameter,
borderRadius: diameter / 2,
});
const fetchImage = async (image, ipfsGateway) => {
// Simulate an API request with a timeout
const getImage = async (image, ipfsGateway) => {
return await getAssetImageURL(image, ipfsGateway);
};

Expand Down Expand Up @@ -85,7 +84,7 @@ export default class Identicon extends Component {
};

loadImage = async () => {
const result = await fetchImage(this.props.image, this.props.ipfsGateway);
const result = await getImage(this.props.image, this.props.ipfsGateway);
this.setState({ imageUrl: result });
};

Expand Down

0 comments on commit 8d7d88e

Please sign in to comment.