Skip to content

Commit 6ba93ad

Browse files
heldersepushockey
authored andcommitted
improve: hide loading validator image (#4287)
* hide missing validator image * Render nothing if validator badge has not loaded/received errors * Revert style changes
1 parent 54153dd commit 6ba93ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/online-validator-badge.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class ValidatorImage extends React.Component {
101101
if (this.state.error) {
102102
return <img alt={"Error"} />
103103
} else if (!this.state.loaded) {
104-
return <img alt= {"Loading..."} />
104+
return null
105105
}
106106
return <img src={this.props.src} alt={this.props.alt} />
107107
}

0 commit comments

Comments
 (0)