Skip to content

Commit a5943da

Browse files
GianlucaGianluca
Gianluca
authored and
Gianluca
committedAug 7, 2019
Removed unnecessary check after interval fix
1 parent 3b49202 commit a5943da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎App.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,7 @@ export default class App extends PureComponent {
173173

174174

175175
renderFrame() {
176-
const { direction, down, aliens: stateAliens } = this.state
177-
178-
// A volte a partita terminata, con 0 alieni, c'è ancora una chiamata a renderFrame, che fa crashare tutto
179-
if (!stateAliens.length) return
176+
const { direction, down } = this.state
180177

181178
const dX = down ? 0 : options.aliensHorStep * direction
182179
const dY = down ? options.aliensVerStep : 0

0 commit comments

Comments
 (0)
Please sign in to comment.