on master help sign in
Minor cleanup
82fb0c8Fang
src/bridge/lib/inviteMail.js+1−2
@@ -27,12 +27,11 @@ function sendRequest(where, what) {
27
27
28async function hasReceived(recipient) {
28async function hasReceived(recipient) {
29 const res = await sendRequest('/has-received', {recipient});
29 const res = await sendRequest('/has-received', {recipient});
30− console.log('got fetch result', res);
31 return res.hasReceived;
30 return res.hasReceived;
32}
31}
33
32
34function sendMail(recipient, ticket, tx) {
33function sendMail(recipient, ticket, tx) {
35− return sendRequest('/send-ticket', {recipient,ticket,tx});
34+ return sendRequest('/send-ticket', { recipient, ticket, tx });
36}
35}
37
36
38export {
37export {
src/bridge/views/InvitesManage.js+2−2
@@ -92,7 +92,7 @@ class InvitesManage extends React.Component {
92 const target = this.state.targetPlanet;
92 const target = this.state.targetPlanet;
93 const match = Just.hasInstance(target) ? (who === target.value) : false;
93 const match = Just.hasInstance(target) ? (who === target.value) : false;
94 if (match) {
94 if (match) {
95− this.setState({ currentPoolSize:Just(size) });
95+ this.setState({ currentPoolSize: Just(size) });
96 }
96 }
97 }
97 }
98
98
@@ -127,7 +127,7 @@ class InvitesManage extends React.Component {
127 }
127 }
128
128
129 let poolSizeText = this.state.currentPoolSize.matchWith({
129 let poolSizeText = this.state.currentPoolSize.matchWith({
130− Just: ps => `(currently ${ps.value.toString()})`,
130+ Just: ps => `(currently ${ps.value})`,
131 Nothing: _ => ''
131 Nothing: _ => ''
132 });
132 });
133
133