Merge branch 'event-location-fix' into 'develop'

Fix renderLocation in ComposeEventModal

Closes #1402

See merge request soapbox-pub/soapbox!2435
This commit is contained in:
marcin mikołajczak 2023-04-12 18:27:29 +00:00
commit c54adc7948
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ const ComposeEventModal: React.FC<IComposeEventModal> = ({ onClose }) => {
<Icon src={ADDRESS_ICONS[location.type] || require('@tabler/icons/map-pin.svg')} />
<Stack className='grow'>
<Text>{location.description}</Text>
<Text theme='muted' size='xs'>{[location.street, location.locality, location.country].filter(val => val.trim()).join(' · ')}</Text>
<Text theme='muted' size='xs'>{[location.street, location.locality, location.country].filter(val => val?.trim()).join(' · ')}</Text>
</Stack>
<IconButton title={intl.formatMessage(messages.resetLocation)} src={require('@tabler/icons/x.svg')} onClick={() => onChangeLocation(null)} />
</HStack>