Skip to content

Commit

Permalink
Default geofence name (fix #1102)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 27, 2023
1 parent 828e13a commit e9524aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modern/src/common/components/StatusCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin

const handleGeofence = useCatchCallback(async () => {
const newItem = {
name: '',
name: t('sharedGeofence'),
area: `CIRCLE (${position.latitude} ${position.longitude}, 50)`,
};
const response = await fetch('/api/geofences', {
Expand Down
2 changes: 1 addition & 1 deletion modern/src/other/GeofencesPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const GeofencesPage = () => {
.map((point) => `${point.getAttribute('lat')} ${point.getAttribute('lon')}`)
.join(', ');
const area = `LINESTRING (${coordinates})`;
const newItem = { name: '', area };
const newItem = { name: t('sharedGeofence'), area };
try {
const response = await fetch('/api/geofences', {
method: 'POST',
Expand Down

0 comments on commit e9524aa

Please sign in to comment.