Skip to content

Commit 2d0186b

Browse files
committed
Update Missions.js
1 parent 7ea0b12 commit 2d0186b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Missions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const MissionsComponent = () => {
1414
if (missions.length === 0) {
1515
dispatch(getMission());
1616
}
17-
}, [dispatch]);
17+
}, [dispatch, missions.length]);
1818

1919
const join = (id) => {
2020
dispatch(joinMission(id));

0 commit comments

Comments
 (0)