Skip to content

Commit

Permalink
Fix desktop app crash without profile picture
Browse files Browse the repository at this point in the history
bancek committed Jun 21, 2024
1 parent 7ba244d commit b24c640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vault-web/src/desktopVault/WebVaultClient.ts
Original file line number Diff line number Diff line change
@@ -64,6 +64,10 @@ export class WebVaultClient {
}

handleResponse(request: XMLHttpRequest, bytes: boolean) {
if (request.status === 204) {
return undefined;
}

const { body } = this.requestEncryption.decryptResponse(
request.responseText,
);
@@ -72,10 +76,6 @@ export class WebVaultClient {
throw new Error(`Call error: ${request.status}: ${body}`);
}

if (request.status === 204) {
return undefined;
}

if (bytes) {
return new Uint8Array(decode(body));
}

0 comments on commit b24c640

Please sign in to comment.