@@ -20,38 +20,22 @@ 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
23+ //TODO more appropriately named "syncDates" or similar
2424 const syncKnownPoint = useCallback(
2525 async point => Promise.all([syncBirthday(point), syncRekeyDate(point)]),
2626 [syncBirthday, syncRekeyDate]
2727 );
2828
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(
29+ const syncExtras = useCallback(
3930 async point =>
4031 Promise.all([
41− syncForeignPoint(point),
4232 syncKnownPoint(point),
4333 //
4434 syncResidentCount(point),
4535 syncDetails(point),
4636 syncInvites(point),
4737 ]),
48− [
49− syncForeignPoint,
50− syncKnownPoint,
51− syncDetails,
52− syncInvites,
53− syncResidentCount,
54− ]
38+ [syncKnownPoint, syncDetails, syncInvites, syncResidentCount]
5539 );
5640
5741 return {
@@ -67,8 +51,7 @@ export default function usePointStore() {
6751 syncInvites,
6852 syncControlledPoints,
6953 syncKnownPoint,
70− syncOwnedPoint,
71− syncForeignPoint,
7254 syncResidents,
55+ syncExtras,
7356 };
7457}