From b52861cb1c143eb369c156a406d79ac03a8eef27 Mon Sep 17 00:00:00 2001 From: John Eric Date: Mon, 16 Sep 2024 18:51:04 +0800 Subject: [PATCH] fix: typo in retrieving congregation expiry hours --- src/pages/admin.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/admin.tsx b/src/pages/admin.tsx index dea29ee..0592d84 100644 --- a/src/pages/admin.tsx +++ b/src/pages/admin.tsx @@ -935,8 +935,8 @@ function Admin({ user }: adminProps) { } const congregationDetails = snapshot.val(); const congName = congregationDetails["name"] as string; - const expireHours = - congregationDetails["expireHours"] || DEFAULT_SELF_DESTRUCT_HOURS; + const expiryHours = + congregationDetails["expiryHours"] || DEFAULT_SELF_DESTRUCT_HOURS; const maxTries = congregationDetails["maxTries"] || DEFAULT_CONGREGATION_MAX_TRIES; const options = processOptions( @@ -954,7 +954,7 @@ function Admin({ user }: adminProps) { document.title = congName; setName(congName); - setDefaultExpiryHours(expireHours); + setDefaultExpiryHours(expiryHours); setOptions(options); setPolicy( new Policy(