From 372a9bdd974d33809c0f0a8d65dd7207eec13d86 Mon Sep 17 00:00:00 2001 From: DecDuck Date: Mon, 7 Apr 2025 10:37:01 +1000 Subject: [PATCH] fix: devices page (reactivity and relative timestamps) --- pages/account/devices.vue | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pages/account/devices.vue b/pages/account/devices.vue index 5c80a62f..ec0ee3ed 100644 --- a/pages/account/devices.vue +++ b/pages/account/devices.vue @@ -68,9 +68,7 @@ - {{ - DateTime.fromISO(client.lastConnected).diffNow().toHuman() - }} + {{ DateTime.fromISO(client.lastConnected).toRelative() }} { - const index = clients.findIndex((e) => e.id == id); - clients.splice(index, 1); + const index = clients.value.findIndex((e) => e.id == id); + clients.value.splice(index, 1); }) .catch((e) => { createModal(