From 54c5cabf48880f6be1b9bc0f941fd11342b0fc3b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 Oct 2021 13:01:36 +0100 Subject: [PATCH] fix: showing deletion scheduled at for non-scheduled users --- src/views/user/settings/Deletion.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/user/settings/Deletion.vue b/src/views/user/settings/Deletion.vue index eef11c1a..6295352f 100644 --- a/src/views/user/settings/Deletion.vue +++ b/src/views/user/settings/Deletion.vue @@ -98,7 +98,7 @@ export default { }, computed: mapState({ userDeletionEnabled: state => state.config.userDeletionEnabled, - deletionScheduledAt: state => parseDateOrNull(state.auth.info.deletionScheduledAt), + deletionScheduledAt: state => parseDateOrNull(state.auth.info?.deletionScheduledAt), }), mounted() { this.setTitle(`${this.$t('user.deletion.title')} - ${this.$t('user.settings.title')}`)