Skip to content

Commit

Permalink
Merge pull request #290 from chain4travel/suite
Browse files Browse the repository at this point in the history
update foundation email and add partner flag check
  • Loading branch information
aeddaqqa authored Dec 23, 2024
2 parents 3929848 + d40be09 commit f987d08
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Partners/PartnerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const PartnerCard: React.FC<PartnerCardProps> = ({ partner, clickable, onClick }
)}
</Box>
{!!country_flag && !!country_flag.data?.attributes && (
<PartnerFlag country={country_flag.data.attributes} />
<PartnerFlag country={country_flag?.data?.attributes} />
)}
{!!business_fields && <PartnerBusinessFields business_fields={business_fields} />}
</Box>
Expand Down
1 change: 1 addition & 0 deletions src/components/Partners/PartnerFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface PartnerFlagProps {
const PartnerFlag: React.FC<PartnerFlagProps> = ({
country: { countryName, countryIdentifier },
}) => {
if (!countryIdentifier || !countryName) return null
return (
<Box sx={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
<CircleFlag countryCode={countryIdentifier?.toLowerCase()} height="20" />
Expand Down
2 changes: 1 addition & 1 deletion src/layout/PartnersLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ClaimProfile = () => {
)}&body=${encodeURIComponent(body)}`
window.location.href = mailtoLink
}
const emailAddress = 'foundation@camino.network'
const emailAddress = 'hello@camino.network'
return (
<Box
sx={{
Expand Down
8 changes: 4 additions & 4 deletions src/views/partners/Partner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,13 @@ const Partner = () => {
/>
</Box>
<Divider />
{partner.attributes.country_flag.data.attributes && (
{partner?.attributes?.country_flag?.data?.attributes && (
<ContentField label="company country">
{partner.attributes.country_flag &&
partner.attributes.country_flag.data?.attributes && (
{partner?.attributes?.country_flag &&
partner?.attributes?.country_flag.data?.attributes && (
<PartnerFlag
country={
partner.attributes.country_flag.data.attributes
partner?.attributes?.country_flag?.data?.attributes
}
/>
)}
Expand Down

0 comments on commit f987d08

Please sign in to comment.