fix: showing deletion scheduled at for non-scheduled users

This commit is contained in:
kolaente 2021-10-31 13:01:36 +01:00
parent 8389587a60
commit 54c5cabf48
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -98,7 +98,7 @@ export default {
}, },
computed: mapState({ computed: mapState({
userDeletionEnabled: state => state.config.userDeletionEnabled, userDeletionEnabled: state => state.config.userDeletionEnabled,
deletionScheduledAt: state => parseDateOrNull(state.auth.info.deletionScheduledAt), deletionScheduledAt: state => parseDateOrNull(state.auth.info?.deletionScheduledAt),
}), }),
mounted() { mounted() {
this.setTitle(`${this.$t('user.deletion.title')} - ${this.$t('user.settings.title')}`) this.setTitle(`${this.$t('user.deletion.title')} - ${this.$t('user.settings.title')}`)