From 2b31b8d9d83ca5c9a9c09bdc682a8f470d85c1cc Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 15 Jun 2023 13:25:04 +0100 Subject: [PATCH] Fix error when generating error for polling for updates (#25609) --- src/vector/platform/WebPlatform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"), }; }, );