weareinreach / InReach

Void operators found JS-0098
Anti-pattern
Minor
6 days agoa month old
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)) {
Expected 'undefined' and instead saw 'void'
322			},
323		})
324		setLoading(false)
325		return void 0326		// eslint-disable-next-line react-hooks/exhaustive-deps
327	}, [locationResult])
328
Expected 'undefined' and instead saw 'void'
313			DEFAULT_UNIT,
314		])
315		if (!params.success) {
316			return void 0317		}
318		router.push({
319			pathname: '/search/[...params]',