From e81140531c0cb34ccfc29e8f9be0276ddd4f5bfb Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sat, 10 Sep 2022 11:11:45 +0200 Subject: [PATCH] use optional chaining --- src/components/FooterComponent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/FooterComponent.vue b/src/components/FooterComponent.vue index a10e4133..e357e6c7 100644 --- a/src/components/FooterComponent.vue +++ b/src/components/FooterComponent.vue @@ -37,8 +37,8 @@ export default { methods: { async fetchConfig() { this.fetchJson("confg.json").then(config => { - this.donationHref = config.donation_href; - this.statusPageHref = config.status_page_href; + this.donationHref = config?.donation_href; + this.statusPageHref = config?.status_page_href; }); }, },