aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.ts
diff options
context:
space:
mode:
authorLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-28 13:48:21 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2023-05-28 13:48:21 +0530
commit99ca310c73024b51fed1f3077375eed7827f2c20 (patch)
tree2bd15986f448129a2291acba90ccc6bf68a233e0 /src/stores/ServicesStore.ts
parentDisable in-app auto-updates for portable windows installation (fixes #1088) (... (diff)
downloadferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.gz
ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.tar.zst
ferdium-app-99ca310c73024b51fed1f3077375eed7827f2c20.zip
Fix issues reported by sonarqube linter
Diffstat (limited to 'src/stores/ServicesStore.ts')
-rw-r--r--src/stores/ServicesStore.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts
index 9c15d3a07..44f8b277c 100644
--- a/src/stores/ServicesStore.ts
+++ b/src/stores/ServicesStore.ts
@@ -425,12 +425,12 @@ export default class ServicesStore extends TypedStore {
425 return ( 425 return (
426 this.allDisplayed.find( 426 this.allDisplayed.find(
427 service => service.isTodosService && service.isEnabled, 427 service => service.isTodosService && service.isEnabled,
428 ) || false 428 ) ?? false
429 ); 429 );
430 } 430 }
431 431
432 @computed get isTodosServiceActive() { 432 @computed get isTodosServiceActive() {
433 return this.active && this.active.isTodosService; 433 return this.active?.isTodosService;
434 } 434 }
435 435
436 // TODO: This can actually return undefined as well 436 // TODO: This can actually return undefined as well