diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-01-12 13:14:18 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-01-15 16:21:31 +0100 |
| commit | f5790db553aaa177288ff369e30ea97ee8565b48 (patch) | |
| tree | fc7f83558ffd28f1d7d14aaf6457cb243291487a /app/lib | |
| parent | 4aff36938c33443a2834acf8df1c515af8b4d558 (diff) | |
| download | mullvadvpn-f5790db553aaa177288ff369e30ea97ee8565b48.tar.xz mullvadvpn-f5790db553aaa177288ff369e30ea97ee8565b48.zip | |
Add optional attribute to Location.city
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, |
