diff --git a/src/vector/platform/WebPlatform.ts b/src/vector/platform/WebPlatform.ts index 75eae03e8f..719ea9c4b2 100644 --- a/src/vector/platform/WebPlatform.ts +++ b/src/vector/platform/WebPlatform.ts @@ -167,7 +167,7 @@ export default class WebPlatform extends VectorBasePlatform { logger.error("Failed to poll for update", err); return { status: UpdateCheckStatus.Error, - detail: err.message || err.status ? err.status.toString() : "Unknown Error", + detail: err.message || (err.status ? err.status.toString() : "Unknown Error"), }; }, );