diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2023-02-01 18:07:49 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2023-02-06 13:26:53 +0100 |
| commit | aacfe01abf65766b46b5a9e22b8ba733cfcff85a (patch) | |
| tree | bb7db0983e498afcb328a417525cd66343a3e915 /gui/src | |
| parent | 6fedb064fcf8e07301a6c51adf18c30fc5623630 (diff) | |
| download | mullvadvpn-aacfe01abf65766b46b5a9e22b8ba733cfcff85a.tar.xz mullvadvpn-aacfe01abf65766b46b5a9e22b8ba733cfcff85a.zip | |
Fix device sorting
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/redux/account/actions.ts | 2 |
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()), }; } |
