Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ansonjwhe committed Jan 1, 2024
1 parent ca048d4 commit fb2fb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/hooks/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ export const useGetCurrentTicket = () => {
// in case of claim view for instance
// return {} in case that allTickets is empty, means its still loading
if (Object.keys(allTickets).length === 0) return {}
const currentTicketData = allTickets[TICKET_TYPES[ticketType.toUpperCase()]].find(
(ticket) => ticket._id === ticketId
)
const currentTicketData = allTickets[
TICKET_TYPES[ticketType.toUpperCase()]
].find((ticket) => ticket._id === ticketId)
// if not found, will return null
return currentTicketData
}, [allTickets, location.pathname])
Expand Down

0 comments on commit fb2fb47

Please sign in to comment.