Skip to content

Commit

Permalink
refactor: remove redundant optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Aug 9, 2023
1 parent cf40cf0 commit 98aad9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useActiveQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function useActiveQueue(data: Store['state']['data']): AppQueue | null {
return null;
}

const activeQueue = data?.queues?.find((q) => q.name === activeQueueName);
const activeQueue = data.queues?.find((q) => q.name === activeQueueName);

return activeQueue || null;
}

0 comments on commit 98aad9f

Please sign in to comment.