Skip to content

Commit

Permalink
Add null checks on phone numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
devcshort committed Feb 6, 2024
1 parent 8117868 commit ef6a76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/pages/favorites/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function FavoritesDetail({ favoriteList, viewingAsOwner }: any) {
description: el?.translations?.[0]?.serviceDescription,
location: el.location,
website: el.website,
phone: el.phoneNumbers.find(
phone: el?.phoneNumbers?.find(
(el: any) => el.rank === 1 && el.type === 'voice'
),
}))}
Expand Down

0 comments on commit ef6a76c

Please sign in to comment.