@@ -18,7 +18,8 @@ class Point extends React.Component {
18 super(props)
18 super(props)
20 this.state = {
20 this.state = {
21− spawned: []
21+ spawned: [],
@@ -50,9 +51,8 @@ class Point extends React.Component {
50 pointCursor.chain(point => {
51 pointCursor.chain(point => {
51 azimuth.azimuth.getPoint(ctrcs, point)
52 azimuth.azimuth.getPoint(ctrcs, point)
52 .then(details => addToPointCache({ [point]: details }));
53 .then(details => addToPointCache({ [point]: details }));
53− const prefix = azimuth.azimuth.getPrefix(point);
54+ azimuth.delegatedSending.getTotalUsableInvites(ctrcs, point)
54− azimuth.azimuth.getPoint(ctrcs, prefix)
55+ .then(count => this.setState({ invites: Just(count) }));
55− .then(details => addToPointCache({ [prefix]: details }));
56 this.updateSpawned(ctrcs, point);
56 this.updateSpawned(ctrcs, point);
@@ -92,16 +92,6 @@ class Point extends React.Component {
92 ? Just(pointCache[point])
92 ? Just(pointCache[point])
93 : Nothing()
93 : Nothing()
95− const prefix = azimuth.azimuth.getPrefix(point);
96− const prefixDetails =
98− ? Just(pointCache[prefix])
100− const delegatedSending = contracts.matchWith({
101− Nothing: () => '0x',
102− Just: (c) => c.value.delegatedSending.address
105 const name = ob.patp(point)
95 const name = ob.patp(point)
107 const sigil = pour({
97 const sigil = pour({
@@ -147,10 +137,9 @@ class Point extends React.Component {
147 pushRoute={ pushRoute }
137 pushRoute={ pushRoute }
148 online={ online }
138 online={ online }
149 wallet={ wallet }
139 wallet={ wallet }
150− delegatedSending={ delegatedSending }
151 point={ point }
140 point={ point }
152 pointDetails={ pointDetails }
141 pointDetails={ pointDetails }
153− prefixDetails={ prefixDetails } />
142+ invites={ this.state.invites } />