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
No known key found for this signature in database
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')}`)