Skip to content
Snippets Groups Projects
Unverified Commit 197cc1de authored by Kyle Doherty's avatar Kyle Doherty
Browse files

fix text cycling

parent 44c89d69
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,6 @@ export default class LoadingAndErrorWrapper extends Component {
loadingInterval = () => {
this.cycleLoadingMessage()
if(this.props.loadingScenes) {
this.cycleLoadingScenes()
}
}
cycleLoadingScenes = () => {
......@@ -87,21 +84,13 @@ export default class LoadingAndErrorWrapper extends Component {
cycleLoadingMessage = () => {
this.setState({
messageIndex: this.state.messageIndex + 1 < this.props.loadingMessages.length -1
messageIndex: this.state.messageIndex + 1 < this.props.loadingMessages.length
? this.state.messageIndex + 1
: 0
})
}
cycleLoadingScenes = () => {
this.setState({
sceneIndex: this.state.sceneIndex + 1 < this.props.loadingScenes.length -1
? this.state.sceneIndex + 1
: 0
})
}
render() {
const {
loading,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment