diff options
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/ipc-facade.js | 6 |
1 files changed, 3 insertions, 3 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, |
