diff --git a/src/app/_eth/accountIndex.ts b/src/app/_eth/accountIndex.ts index bc861e8..564479f 100644 --- a/src/app/_eth/accountIndex.ts +++ b/src/app/_eth/accountIndex.ts @@ -34,7 +34,7 @@ export class AccountIndex { lowest = 0; } const accounts: Array = []; - for (let i = count; i > lowest; i--) { + for (let i = count - 1; i >= lowest; i--) { const account: string = await this.contract.methods.entry(i).call(); accounts.push(account); } diff --git a/src/app/_helpers/http-getter.ts b/src/app/_helpers/http-getter.ts index 4c1719e..d4c253f 100644 --- a/src/app/_helpers/http-getter.ts +++ b/src/app/_helpers/http-getter.ts @@ -6,7 +6,7 @@ HttpGetter.prototype.get = (filename) => new Promise((resolve, reject) => { fetch(filename).then((response) => { if (response.ok) { - resolve(response.json()); + resolve(response.text()); } else { reject(rejectBody(response)); }