diff options
| -rw-r--r-- | app/lib/ipc-facade.js | 6 | ||||
| -rw-r--r-- | app/redux/connection/actions.js | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/lib/ipc-facade.js b/app/lib/ipc-facade.js index b54cbe5177..145971e289 100644 --- a/app/lib/ipc-facade.js +++ b/app/lib/ipc-facade.js @@ -1,7 +1,7 @@ // @flow import JsonRpcWs, { InvalidReply } from './jsonrpc-ws-ipc'; -import { object, string, number, boolean, enumeration, arrayOf, oneOf } from 'validated/schema'; +import { object, maybe, string, number, boolean, enumeration, arrayOf, oneOf } from 'validated/schema'; import { validate } from 'validated/object'; export type AccountData = { expiry: string }; @@ -10,7 +10,7 @@ export type Ip = string; export type Location = { ip: Ip, country: string, - city: string, + city: ?string, latitude: number, longitude: number, mullvad_exit_ip: boolean, @@ -18,7 +18,7 @@ export type Location = { const LocationSchema = object({ ip: string, country: string, - city: string, + city: maybe(string), latitude: number, longitude: number, mullvad_exit_ip: boolean, diff --git a/app/redux/connection/actions.js b/app/redux/connection/actions.js index fb18777124..6f0da8cecf 100644 --- a/app/redux/connection/actions.js +++ b/app/redux/connection/actions.js @@ -33,7 +33,7 @@ type NewLocationAction = { newLocation: { ip: Ip, country: string, - city: string, + city: ?string, latitude: number, longitude: number, mullvadExitIp: boolean, |
