Browse Source

fix if user's country code not set

Ramona Plogmann 1 year ago
parent
commit
b5e08081f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/src/components/Social/social.util.jsx

+ 1 - 1
client/src/components/Social/social.util.jsx

@@ -61,5 +61,5 @@ export const ContactAvatar = ({ children, ...props }) => {
 
 export const getContactName = (contact) => (contact?.user_metadata?.username ?? contact.name);
 export const getContactPicture = (contact) => (contact?.user_metadata?.picture ?? contact.picture);
-export const getContactCountry = (contact) => (contact?.user_metadata?.countryCode.toLowerCase());
+export const getContactCountry = (contact) => (contact?.user_metadata?.countryCode?.toLowerCase());