Skip to content

A self-hosted media server and file management system

feat: code smells

aminnausin6221774b4531
diff --git a/resources/js/stores/DashboardStore.ts b/resources/js/stores/DashboardStore.ts
index 8b6ac79b..2a918478 100644
--- a/resources/js/stores/DashboardStore.ts
+++ b/resources/js/stores/DashboardStore.ts
@@ -57,7 +57,7 @@ export const useDashboardStore = defineStore('Dashboard', () => {
watch(rawActiveSessions, (v: any) => {
if (isNaN(parseInt(v))) return;
- stateActiveSessions.value = v || 0;
+ stateActiveSessions.value = v ?? 0;
});
watch(