diff --git a/setup-wizard/src/app/services/api/http.service.ts b/setup-wizard/src/app/services/api/http.service.ts index 7866832e6..292d7767a 100644 --- a/setup-wizard/src/app/services/api/http.service.ts +++ b/setup-wizard/src/app/services/api/http.service.ts @@ -79,10 +79,10 @@ function RpcError (e: RPCError['error']): void { this.code = code this.message = message - if (typeof data === 'string') { - this.details = e.data - } else { + if (typeof data !== 'string') { this.details = data.details + } else { + this.details = data } }