on master help sign in
Minor cleanup
commit82fb0c84e4ae574719aba11c4da6346ee125c491 authorFang <git@fang.io> dateTue 11 Jun 2019, 16:03 (7 years ago) parent3def35f
2 files changed+3−4
src/bridge/lib/inviteMail.js+1−2 src/bridge/views/InvitesManage.js+2−2
src/bridge/lib/inviteMail.js+1−2
@@ -27,12 +27,11 @@ function sendRequest(where, what) {
2727
2828async function hasReceived(recipient) {
2929 const res = await sendRequest('/has-received', {recipient});
30− console.log('got fetch result', res);
3130 return res.hasReceived;
3231}
3332
3433function sendMail(recipient, ticket, tx) {
35− return sendRequest('/send-ticket', {recipient,ticket,tx});
34+ return sendRequest('/send-ticket', { recipient, ticket, tx });
3635}
3736
3837export {
src/bridge/views/InvitesManage.js+2−2
@@ -92,7 +92,7 @@ class InvitesManage extends React.Component {
9292 const target = this.state.targetPlanet;
9393 const match = Just.hasInstance(target) ? (who === target.value) : false;
9494 if (match) {
95− this.setState({ currentPoolSize:Just(size) });
95+ this.setState({ currentPoolSize: Just(size) });
9696 }
9797 }
9898
@@ -127,7 +127,7 @@ class InvitesManage extends React.Component {
127127 }
128128
129129 let poolSizeText = this.state.currentPoolSize.matchWith({
130− Just: ps => `(currently ${ps.value.toString()})`,
130+ Just: ps => `(currently ${ps.value})`,
131131 Nothing: _ => ''
132132 });
133133