added state retrieval to existingWhatsAround needs, to reduce the close calls to already closed whatsaround needs
@@ -156,7 +156,7 @@ function genComponentConf() {
const selectFromState = (state) => {
return {
- existingWhatsAroundNeeds: state.get("needs").filter(need => need.get("isWhatsAround")),
+ existingWhatsAroundNeeds: state.get("needs").filter(need => need.get("isWhatsAround") && need.get("state") === won.WON.ActiveCompacted),
}
};
