@@ -18,7 +18,8 @@ class Point extends React.Component {
1818 super(props)
1919
2020 this.state = {
21− spawned: []
21+ spawned: [],
22+ invites: Nothing()
2223 }
2324 }
2425
@@ -50,9 +51,8 @@ class Point extends React.Component {
5051 pointCursor.chain(point => {
5152 azimuth.azimuth.getPoint(ctrcs, point)
5253 .then(details => addToPointCache({ [point]: details }));
53− const prefix = azimuth.azimuth.getPrefix(point);
54− azimuth.azimuth.getPoint(ctrcs, prefix)
55− .then(details => addToPointCache({ [prefix]: details }));
54+ azimuth.delegatedSending.getTotalUsableInvites(ctrcs, point)
55+ .then(count => this.setState({ invites: Just(count) }));
5656 this.updateSpawned(ctrcs, point);
5757 })));
5858 }
@@ -92,16 +92,6 @@ class Point extends React.Component {
9292 ? Just(pointCache[point])
9393 : Nothing()
9494
95− const prefix = azimuth.azimuth.getPrefix(point);
96− const prefixDetails =
97− prefix in pointCache
98− ? Just(pointCache[prefix])
99− : Nothing();
100− const delegatedSending = contracts.matchWith({
101− Nothing: () => '0x',
102− Just: (c) => c.value.delegatedSending.address
103− })
104−
10595 const name = ob.patp(point)
10696
10797 const sigil = pour({
@@ -147,10 +137,9 @@ class Point extends React.Component {
147137 pushRoute={ pushRoute }
148138 online={ online }
149139 wallet={ wallet }
150− delegatedSending={ delegatedSending }
151140 point={ point }
152141 pointDetails={ pointDetails }
153− prefixDetails={ prefixDetails } />
142+ invites={ this.state.invites } />
154143 : null
155144 }
156145