summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/lib/backend.js4
-rw-r--r--app/lib/ipc-facade.js4
-rw-r--r--test/mocks/ipc.js2
3 files changed, 5 insertions, 5 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js
index 7e5e21708f..496ad9b3b6 100644
--- a/app/lib/backend.js
+++ b/app/lib/backend.js
@@ -152,9 +152,9 @@ export class Backend {
.then( location => {
log.info('Got location', location);
const newLocation = {
- location: location.latlong,
country: location.country,
- city: location.city
+ city: location.city,
+ location: location.position
};
this._store.dispatch(connectionActions.newLocation(newLocation));
})
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js
index 5b67dcb76f..6cd224a441 100644
--- a/app/lib/ipc-facade.js
+++ b/app/lib/ipc-facade.js
@@ -10,14 +10,14 @@ export type AccountData = {expiry: string};
export type AccountToken = string;
export type Ip = string;
export type Location = {
- latlong: Coordinate2d,
country: string,
city: string,
+ position: Coordinate2d,
};
const LocationSchema = object({
- latlong: arrayOf(number),
country: string,
city: string,
+ position: arrayOf(number),
});
export type SecurityState = 'secured' | 'unsecured';
diff --git a/test/mocks/ipc.js b/test/mocks/ipc.js
index 67c11c7366..53ac487dd5 100644
--- a/test/mocks/ipc.js
+++ b/test/mocks/ipc.js
@@ -49,7 +49,7 @@ export function newMockIpc() {
getLocation: () => Promise.resolve({
city: '',
country: '',
- latlong: [0, 0],
+ position: [0, 0],
}),
getState: () => Promise.resolve({