Ver código fonte

improve: hide loading validator image (#4287)

* hide missing validator image

* Render nothing if validator badge has not loaded/received errors

* Revert style changes
bubble
Helder Sepulveda 6 anos atrás
committed by kyle
pai
commit
6ba93ad43f
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/core/components/online-validator-badge.jsx

+ 1
- 1
src/core/components/online-validator-badge.jsx Ver arquivo

@@ -101,7 +101,7 @@ class ValidatorImage extends React.Component {
if (this.state.error) {
return <img alt={"Error"} />
} else if (!this.state.loaded) {
return <img alt= {"Loading..."} />
return null
}
return <img src={this.props.src} alt={this.props.alt} />
}


Carregando…
Cancelar
Salvar