@@ -20,38 +20,21 @@ export default function usePointStore() {
2020 const { syncResidents, syncResidentCount, ...residents } = useResidents();
2121 const ecliptic = useEclipticOwnerStore();
2222
23− // sync all of the on-chain info required to display a known point
24− const syncKnownPoint = useCallback(
23+ const syncDates = useCallback(
2524 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
2625 [syncBirthday, syncRekeyDate]
2726 );
2827
29− // sync all of the on-chain info required to display a foreign point
30− const syncForeignPoint = useCallback(
31− async point => {
32− syncDetails(point);
33− },
34− [syncDetails]
35− );
36−
37− // sync all of the on-chain info required for a point that the user owns
38− const syncOwnedPoint = useCallback(
28+ const syncExtras = useCallback(
3929 async point =>
4030 Promise.all([
41− syncForeignPoint(point),
42− syncKnownPoint(point),
31+ syncDetails(point),
4332 //
33+ syncDates(point),
4434 syncResidentCount(point),
45− syncDetails(point),
4635 syncInvites(point),
4736 ]),
48− [
49− syncForeignPoint,
50− syncKnownPoint,
51− syncDetails,
52− syncInvites,
53− syncResidentCount,
54− ]
37+ [syncDates, syncDetails, syncInvites, syncResidentCount]
5538 );
5639
5740 return {
@@ -66,9 +49,8 @@ export default function usePointStore() {
6649 syncRekeyDate,
6750 syncInvites,
6851 syncControlledPoints,
69− syncKnownPoint,
70− syncOwnedPoint,
71− syncForeignPoint,
52+ syncDates,
7253 syncResidents,
54+ syncExtras,
7355 };
7456}