We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ea0b12 commit 2d0186bCopy full SHA for 2d0186b
src/components/Missions.js
@@ -14,7 +14,7 @@ const MissionsComponent = () => {
14
if (missions.length === 0) {
15
dispatch(getMission());
16
}
17
- }, [dispatch]);
+ }, [dispatch, missions.length]);
18
19
const join = (id) => {
20
dispatch(joinMission(id));
0 commit comments