on master help sign in
invites: remove unused errorCount variable
82af141Fang
src/lib/useInviter.js−15
@@ -100,7 +100,6 @@ const useInviter = () => {
100
100
101 // NB(shrugs) - must be processed in serial because main thread, etc
101 // NB(shrugs) - must be processed in serial because main thread, etc
102 let signedInvites = [];
102 let signedInvites = [];
103− let errorCount = 0;
104 for (let i = 0; i < numInvites; i++) {
103 for (let i = 0; i < numInvites; i++) {
105 setProgress(x => x + 1);
104 setProgress(x => x + 1);
106 try {
105 try {
@@ -195,20 +194,6 @@ const useInviter = () => {
195 };
194 };
196 }
195 }
197
196
198− if (errorCount > 0) {
199− return {
200− errors: {
201− [WARNING]: `There ${pluralize(
202− errorCount,
203− 'was',
204− 'were'
205− )} ${pluralize(
206− errorCount,
207− 'error'
208− )} while generating wallets. You can still send the invites that generated correctly.`,
209− },
210− };
211− }
212 return { invites: confirmedInvites };
197 return { invites: confirmedInvites };
213 },
198 },
214 [
199 [