Skip to content

Commit f88549c

Browse files
committed
hotfix null currentLocation in selector component
1 parent ecbca8b commit f88549c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/CustomerLocationSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const CustomerLocationSelect = ({ onChange, onSelectNewLocation, redirectTo = 'C
6161
</YStack>
6262
<YStack flex={1} px='$3'>
6363
<Text size={15} color='$textPrimary' fontWeight='bold' mb={2}>
64-
{currentLocation.getAttribute('name') ?? 'Your Location'}
64+
{currentLocation?.getAttribute('name') ?? 'Your Location'}
6565
</Text>
6666
<Text color='$textSecondary'>{formattedAddressFromPlace(currentLocation)}</Text>
6767
</YStack>

0 commit comments

Comments
 (0)