From edd4b6f32636dd16bd2eef041d7818c15b53ed82 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 15 Jun 2023 12:30:55 +0100 Subject: [PATCH] Fix error when generating error for polling for updates --- 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 75eae03e8fe..719ea9c4b2b 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"), }; }, );