From 8d7d88e18162745ffd204303721d61ce7103cc59 Mon Sep 17 00:00:00 2001 From: sahar-fehri Date: Tue, 10 Sep 2024 10:16:37 +0200 Subject: [PATCH] fix: rename fct --- ui/components/ui/identicon/identicon.component.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/components/ui/identicon/identicon.component.js b/ui/components/ui/identicon/identicon.component.js index abfe043cde3c..0eb05822d292 100644 --- a/ui/components/ui/identicon/identicon.component.js +++ b/ui/components/ui/identicon/identicon.component.js @@ -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); }; @@ -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 }); };