From 94ea16d4f5c61a0cc3cc455450ba220ff1ad20c0 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Wed, 19 Apr 2023 01:42:18 +0000 Subject: [PATCH] fix bug in resource table --- scripts/account.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/account.js b/scripts/account.js index 79a0d9f..2301da8 100644 --- a/scripts/account.js +++ b/scripts/account.js @@ -13,7 +13,7 @@ function buildResourceTable (object, tableid) { let table = document.querySelector(tableid); let tbody = table.querySelector("tbody"); - Object.keys(object.available).forEach((element) => { + Object.keys(object.avail).forEach((element) => { let row = tbody.insertRow(); let key = row.insertCell(); key.innerText = `${element}`;