Skip to content

Commit

Permalink
🐛 fixed level to gameLevel when size is 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Styx11 committed Mar 25, 2019
1 parent af8c4e2 commit ec3a541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
let gameLevel = level !== undefined
? Math.ceil(this.size * this.levels[level])
: 0;
if (this.size === 4 ) level = Math.floor((this.size + 1) * this.levels[level]);
if (this.size === 4 ) gameLevel = Math.floor((this.size + 1) * this.levels[level]);

this.id = id;
this.originGrid = grid.cells;
Expand Down

0 comments on commit ec3a541

Please sign in to comment.