on master help sign in
Update InvitesManage to work with latest azimuth-js
c32a615Fang
src/bridge/views/InvitesManage.js+3−2
@@ -86,7 +86,7 @@ class InvitesManage extends React.Component {
86 } else {
86 } else {
87 azimuth.delegatedSending.getPool(this.contracts, who)
87 azimuth.delegatedSending.getPool(this.contracts, who)
88 .then(pool => {
88 .then(pool => {
89− azimuth.delegatedSending.invitesInPool(this.contracts, pool)
89+ azimuth.delegatedSending.invitesInPool(this.contracts, pool, this.point)
90 .then(size => {
90 .then(size => {
91 this.updatePoolSize(who, size);
91 this.updatePoolSize(who, size);
92 });
92 });
@@ -111,6 +111,7 @@ class InvitesManage extends React.Component {
111 createUnsignedTxn() {
111 createUnsignedTxn() {
112 return Just(azimuth.delegatedSending.setPoolSize(
112 return Just(azimuth.delegatedSending.setPoolSize(
113 this.contracts,
113 this.contracts,
114+ this.point,
114 this.state.targetPlanet.value,
115 this.state.targetPlanet.value,
115 this.state.targetPoolSize
116 this.state.targetPoolSize
116 ))
117 ))
@@ -134,7 +135,7 @@ class InvitesManage extends React.Component {
134 }
135 }
135
136
136 let poolSizeText = this.state.currentPoolSize.matchWith({
137 let poolSizeText = this.state.currentPoolSize.matchWith({
137− Just: ps => `(currently ${ps.toString()})`,
138+ Just: ps => `(currently ${ps.value.toString()})`,
138 Nothing: _ => ''
139 Nothing: _ => ''
139 });
140 });
140
141