Skip to content

Commit 9f42a53

Browse files
committed
Fix syntax error: missing catch block after try in renderCitizenDetail
1 parent 2576ee2 commit 9f42a53

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

index.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ <h2>Council login</h2>
3333
</div>
3434
<div id="loginErr"></div>
3535
<button class="btn block" id="loginBtn">Log in</button>
36-
<p id="scriptStatus" style="font-size:11px;color:#999;text-align:center;margin-top:8px">Loading...</p>
3736
</div>
3837

3938
<div id="dashboard" class="hidden">
@@ -79,18 +78,6 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
7978
<div id="modalRoot"></div>
8079
<footer>New Serchhip North Village Council · v1.26.2</footer>
8180

82-
<script>
83-
// Boot loader - attaches login handler immediately, independent of module loading
84-
window._loginReady = false;
85-
document.getElementById("loginBtn").addEventListener("click", function _bootLogin(){
86-
if(window._loginReady) return window._doLogin();
87-
document.getElementById("loginErr").innerHTML='<div class="notice err">App is still loading... please wait</div>';
88-
});
89-
document.getElementById("adminPass").addEventListener("keydown", function(e){
90-
if(e.key==="Enter") document.getElementById("loginBtn").click();
91-
});
92-
document.getElementById("scriptStatus").textContent = "";
93-
</script>
9481
<script type="module">
9582
/* ============================================================
9683
FIREBASE CONFIG (paste your own)
@@ -985,8 +972,6 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
985972
let dashboardRefreshSeq=0, dashboardRefreshTimer=null, cacheRefreshTimer=null;
986973
// Configuration
987974

988-
window._doLogin = login;
989-
window._loginReady = true;
990975
try {
991976
const adminPass = $("adminPass");
992977
if(adminPass) adminPass.addEventListener("keydown", e=>{ if(e.key==="Enter") login(); });
@@ -2292,7 +2277,7 @@ <h4>Pending UPI payments <span id="pendingCount" class="pending-badge">0</span><
22922277

22932278
$("adminDetail").innerHTML = buildCitizenDetailHTML(c, bal, historyHTML, headerBadge, actionBadges, totalEntries, hiddenCount);
22942279
attachCitizenDetailListeners(id, c, bal, allSorted, INITIAL_HISTORY, state);
2295-
}
2280+
} catch(err) { console.error(err); }
22962281
}
22972282

22982283
function attachCitizenDetailListeners(id, citizen, balance, allSorted, initialHistoryCount, stateRef){

0 commit comments

Comments
 (0)