Skip to content

Commit

Permalink
Changes for hiding the blank alert
Browse files Browse the repository at this point in the history
  • Loading branch information
sumesh-aot committed Feb 13, 2021
1 parent b794541 commit 4ae07fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appointment-frontend/src/components/common/NoEmailAlert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ export default class NoEmailAlert extends Vue {
private isSmsReminderFlagMissing:boolean = false
private mounted () {
this.showAlert = !this.currentUserProfile?.email || !this.currentUserProfile?.send_email_reminders || !this.currentUserProfile?.telephone || !this.currentUserProfile?.send_sms_reminders
this.showAlert = !this.currentUserProfile?.email || !this.currentUserProfile?.send_email_reminders
if (ConfigHelper.isEmsEnabled()) {
this.showAlert = this.showAlert || !this.currentUserProfile?.telephone || !this.currentUserProfile?.send_sms_reminders
}
if (!this.currentUserProfile?.email) {
this.isEmailMissing = true
Expand Down

0 comments on commit 4ae07fb

Please sign in to comment.