summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2023-02-06 13:27:05 +0100
committerOskar Nyberg <oskar@mullvad.net>2023-02-06 13:27:05 +0100
commit5af43cf623940faa6973d1297d8d0b4c78b6a361 (patch)
treebb7db0983e498afcb328a417525cd66343a3e915
parent6fedb064fcf8e07301a6c51adf18c30fc5623630 (diff)
parentaacfe01abf65766b46b5a9e22b8ba733cfcff85a (diff)
downloadmullvadvpn-5af43cf623940faa6973d1297d8d0b4c78b6a361.tar.xz
mullvadvpn-5af43cf623940faa6973d1297d8d0b4c78b6a361.zip
Merge branch 'fix-device-sorting'
-rw-r--r--gui/src/renderer/redux/account/actions.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/renderer/redux/account/actions.ts b/gui/src/renderer/redux/account/actions.ts
index 594a96f71f..2b186fb831 100644
--- a/gui/src/renderer/redux/account/actions.ts
+++ b/gui/src/renderer/redux/account/actions.ts
@@ -213,7 +213,7 @@ function updateAccountExpiry(expiry?: string): IUpdateAccountExpiryAction {
function updateDevices(devices: Array<IDevice>): IUpdateDevicesAction {
return {
type: 'UPDATE_DEVICES',
- devices: devices.sort((a, b) => a.created.getDate() - b.created.getDate()),
+ devices: devices.sort((a, b) => a.created.getTime() - b.created.getTime()),
};
}