Skip to content

Commit 5b9afa6

Browse files
committed
removed last warnings
1 parent 471a9ae commit 5b9afa6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/pages/Step10Page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const GameSession = ({
136136
if (wrongPicks === maxWrongAttempts) {
137137
setGameStatus(GameStatus.LOST);
138138
}
139-
}, [pickedCellIds]);
139+
}, [pickedCellIds, challengeCellIds, challengeSize, maxWrongAttempts]);
140140

141141
const pickCell = cellId => {
142142
if (gameStatus === GameStatus.PLAYING) {

src/pages/Step11Page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const GameSession = ({
136136
if (wrongPicks === maxWrongAttempts) {
137137
setGameStatus(GameStatus.LOST);
138138
}
139-
}, [pickedCellIds]);
139+
}, [pickedCellIds, challengeCellIds, challengeSize, maxWrongAttempts]);
140140

141141
const pickCell = cellId => {
142142
if (gameStatus === GameStatus.PLAYING) {

src/pages/Step8Page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const GameSession = ({
132132
if (wrongPicks === maxWrongAttempts) {
133133
setGameStatus(GameStatus.LOST);
134134
}
135-
}, [pickedCellIds]);
135+
}, [pickedCellIds, challengeCellIds, challengeSize, maxWrongAttempts]);
136136

137137
const pickCell = cellId => {
138138
if (gameStatus === GameStatus.PLAYING) {

src/pages/Step9Page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const GameSession = ({
132132
if (wrongPicks === maxWrongAttempts) {
133133
setGameStatus(GameStatus.LOST);
134134
}
135-
}, [pickedCellIds]);
135+
}, [pickedCellIds, challengeCellIds, challengeSize, maxWrongAttempts]);
136136

137137
const pickCell = cellId => {
138138
if (gameStatus === GameStatus.PLAYING) {

0 commit comments

Comments
 (0)