weareinreach / InReach

Void operators found JS-0098
Anti-pattern
Minor
3 occurrences in this check
Expected 'undefined' and instead saw 'void'
156				return void 0
157			}
158			form.setFieldValue('communityFocus', unique([...selectedCurr, ...childIds]))
159			return void 0160		},
161		[communities, form, getChildIds, selectedChildren, selectedCurr]
162	)
Expected 'undefined' and instead saw 'void'
153					'communityFocus',
154					selectedCurr.filter((id) => !childIds.includes(id))
155				)
156				return void 0157			}
158			form.setFieldValue('communityFocus', unique([...selectedCurr, ...childIds]))
159			return void 0
Expected 'undefined' and instead saw 'void'
144		(parentId: string) => {
145			const parentRecord = communities.find(({ id }) => id === parentId)
146			if (!parentRecord) {
147				return void 0148			}
149			const childIds = getChildIds(parentId)
150			if (selectedChildren(parentId, true)) {