on master help sign in
points: sync details for owned points

These are needed for the outgoing transfers check. If we don't have them, the points list will just keep displaying the "loading..." indicator until we get them. This was removed during the simplicfication in #582, but turns out to have been a bit too aggressive.

commit2b975cefec1cb969ceafec36333128c0abb73166 authorFang <git@fang.io> dateThu 1 Jul 2021, 12:33 (5 years ago) parent92c98f6
1 file changed+4
src/views/Points.js+4
src/views/Points.js+4
@@ -12,6 +12,7 @@ import { useStarReleaseCache } from 'store/starRelease';
1212import * as need from 'lib/need';
1313import { isZeroAddress, abbreviateAddress } from 'lib/utils/address';
1414import useIsEclipticOwner from 'lib/useIsEclipticOwner';
15+import { useSyncDetails } from 'lib/useSyncPoints';
1516import useRejectedIncomingPointTransfers from 'lib/useRejectedIncomingPointTransfers';
1617import pluralize from 'lib/pluralize';
1718import newGithubIssueUrl from 'new-github-issue-url';
@@ -204,6 +205,9 @@ export default function Points() {
204205 syncStarReleaseDetails();
205206 }, [syncStarReleaseDetails]);
206207
208+ // sync display details for known points
209+ useSyncDetails(ownedPoints);
210+
207211 const goCreateGalaxy = useCallback(() => push(names.CREATE_GALAXY), [
208212 names.CREATE_GALAXY,
209213 push,