diff --git a/src/oceans/components/scenes/pond/index.jsx b/src/oceans/components/scenes/pond/index.jsx index 63470f5a..1668c01a 100644 --- a/src/oceans/components/scenes/pond/index.jsx +++ b/src/oceans/components/scenes/pond/index.jsx @@ -38,11 +38,15 @@ let UnwrappedPond = class Pond extends React.Component { super(props); } - toggleRecall = e => { + getMatchingFishSet = (e, showMatching) => { const state = getState(); - // No-op if transition is already in progress. - if (state.pondFishTransitionStartTime) { + // No-op if transition is already in progress or if already showing the desired fish set. + // Note that recallFish are fish that are not matching the word/attribute. + // pondFish are fish that are matching the word/attribute. + // showMatching true -> want matching (showRecallFish false) + // showMatching false -> want recalled fish (showRecallFish true). + if (state.pondFishTransitionStartTime || state.showRecallFish === !showMatching) { return; } @@ -193,12 +197,13 @@ let UnwrappedPond = class Pond extends React.Component {