astrogators-shared-ui 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -447,10 +447,13 @@ var _ = [
|
|
|
447
447
|
localStorageCodes: n.map((e) => e.ally_code)
|
|
448
448
|
});
|
|
449
449
|
} else {
|
|
450
|
-
let t = B()
|
|
450
|
+
let t = [...B()].sort((e, t) => {
|
|
451
|
+
let n = e.last_used_at ? new Date(e.last_used_at).getTime() : 0;
|
|
452
|
+
return (t.last_used_at ? new Date(t.last_used_at).getTime() : 0) - n;
|
|
453
|
+
});
|
|
451
454
|
h(t), e = t.map((e) => e.ally_code);
|
|
452
455
|
}
|
|
453
|
-
let t = ge(), r = t && e.includes(t) ? t : null;
|
|
456
|
+
let t = ge(), r = t && e.includes(t) ? t : e[0] ?? null;
|
|
454
457
|
_(r), r !== t && _e(r);
|
|
455
458
|
} catch (e) {
|
|
456
459
|
console.error("Failed to fetch ally codes:", e), h([]);
|
|
@@ -512,8 +515,8 @@ var _ = [
|
|
|
512
515
|
I
|
|
513
516
|
]);
|
|
514
517
|
a(() => {
|
|
515
|
-
M();
|
|
516
|
-
}, [M]);
|
|
518
|
+
o || M();
|
|
519
|
+
}, [o, M]);
|
|
517
520
|
let ae = {
|
|
518
521
|
user: n,
|
|
519
522
|
isAuthenticated: !!n,
|