From 8a52c0943f3357bdb4aad9e44844a409aa3393c3 Mon Sep 17 00:00:00 2001 From: gotjoshua Date: Fri, 19 Nov 2021 11:43:42 +0000 Subject: [PATCH] showLoading and errorIcon work independently --- src/Image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image.js b/src/Image.js index 302a3f0..bf65b19 100644 --- a/src/Image.js +++ b/src/Image.js @@ -125,7 +125,7 @@ export default function Image(props) { onError={handleError} {...rest} /> - {Boolean(showLoading) && Boolean(errorIcon) && ( + {(Boolean(showLoading) || Boolean(errorIcon)) && (
{Boolean(errorIcon) && error && showErrorIcon} {Boolean(showLoading) && !error && !loaded && loadingIndicator}