summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-09 10:51:17 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-09 10:51:17 +0100
commit6af99ef4c0c3a28a29bad9f4c66e41d0365234cc (patch)
tree9c04b8f204b7ed7dcd7cbff2de1b6a3e6d03d435 /src/lib
parent387dbf5cb7c1f03df44731d28623b13b7dc80635 (diff)
Fix bug when no static pages defined
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/config.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/config.ts b/src/lib/config.ts
index 7366b59..6f142e5 100644
--- a/src/lib/config.ts
+++ b/src/lib/config.ts
@@ -53,7 +53,7 @@ export const frontendConfig = (): FrontendConfig => {
isFederated: config.general.is_federated,
emailLogoUrl: config.general.email_logo_url,
showKofi: config.general.show_kofi,
- showInstanceInformation: config.static_pages.length > 0,
+ showInstanceInformation: config.static_pages?.length > 0,
staticPages: config.static_pages,
version: process.env.npm_package_version || "unknown",
};