diff --git a/src/components/map/GpxRecord.tsx b/src/components/map/GpxRecord.tsx
index e821355..f6ff685 100644
--- a/src/components/map/GpxRecord.tsx
+++ b/src/components/map/GpxRecord.tsx
@@ -31,13 +31,11 @@ import { SettingsState } from '../../store/settings';
import i18n, { setI18nLanguage } from '../../i18n/index';
-
declare global {
var $lastValidLocationTime: number;
}
const GpxRecord: React.FC<{}> = () => {
-
const language = useSelector(
(state: { settings: SettingsState }) => state.settings.language
);
@@ -106,6 +104,12 @@ const GpxRecord: React.FC<{}> = () => {
lon: location.longitude,
})
);
+ dispatch(
+ mapActions.setCenter({
+ lat: location.latitude,
+ lon: location.longitude,
+ })
+ );
}
};
@@ -182,7 +186,8 @@ const GpxRecord: React.FC<{}> = () => {
size='large'
onClick={pauseRecording}
>
- {i18n.pauseRecording}
+
+ {i18n.pauseRecording}
)}
{hasCurrentTrack && (
@@ -193,7 +198,8 @@ const GpxRecord: React.FC<{}> = () => {
size='large'
onClick={stopRecording}
>
- {i18n.stopRecording}
+
+ {i18n.stopRecording}
= () => {
size='large'
onClick={deleteRecording}
>
- {i18n.cancelRecording}
+
+ {i18n.cancelRecording}
>
)}