weareinreach / InReach

Found unused variables in TypeScript code JS-0356
Performance
Major
8 days agoa year old
'isSuccess' is assigned a value but never used
132		? queryParams.data
133		: (['US', 0, 0, 0, 'mi'] as const)
134	const {
135		isSuccess,136		isFetching: searchIsFetching,
137		isLoading: searchIsLoading,
138		...searchQuery
 4
 5import { type TServiceModalSchema } from './query.serviceModal.schema'
 6
 7const serviceModal = async ({ ctx, input }: TRPCHandlerParams<TServiceModalSchema>) => { 8	try {
 9		return null
10	} catch (error) {
 4
 5import { type TServiceModalSchema } from './query.serviceModal.schema'
 6
 7const serviceModal = async ({ ctx, input }: TRPCHandlerParams<TServiceModalSchema>) => { 8	try {
 9		return null
10	} catch (error) {
'categoryRenderVariant' is assigned a value but never used
66
67const groupByCategory = (result: DatabaseResult) => {
68	const grouped = result.reduce<GroupedResult[]>((prev, curr) => {
69		const { categoryIcon, categoryId, categoryTag, categoryRenderVariant, ...attribute } = curr70		const existingIdx = prev.findIndex(({ id }) => id === categoryId)
71		if (existingIdx < 0) {
72			return [
'categoryTag' is assigned a value but never used
66
67const groupByCategory = (result: DatabaseResult) => {
68	const grouped = result.reduce<GroupedResult[]>((prev, curr) => {
69		const { categoryIcon, categoryId, categoryTag, categoryRenderVariant, ...attribute } = curr70		const existingIdx = prev.findIndex(({ id }) => id === categoryId)
71		if (existingIdx < 0) {
72			return [