diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-25 09:58:53 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-25 09:58:53 -0500 |
commit | aa5a911edc9d78cb0c462bbd525287e0f3a122ec (patch) | |
tree | 850ef9040582f0e140d103a5b4bfe87e8b116e71 /ui/src/interfaces.ts | |
parent | 691d05222bc1009ec7373336ee097b2bcda5ada5 (diff) |
Fixing front end error messages. Fixes #462
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index bd954d20..cd3961b5 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -784,11 +784,10 @@ type ResponseType = export interface WebSocketResponse { op: UserOperation; data: ResponseType; - error?: string; } export interface WebSocketJsonResponse { - op: string; - data: ResponseType; + op?: string; + data?: ResponseType; error?: string; } |