Skip to content

Commit

Permalink
fixed warning notification sometimes throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Nov 9, 2023
1 parent 385811a commit 7c6e6cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/src/validated_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class NonDrivingContactMediumWarning extends ValidatableFormSectionComponent {
showUserWarning (warningMsg) {
TypeChecker.checkNonEmptyString(warningMsg, 'warningMsg')

if (this.warningNotification) {
if (this.warningNotification && !(this.warningNotification.isDismissed())) {
this.warningNotification.setText(warningMsg)
} else if (this.notifier) {
this.warningNotification = this.notifier.notify(warningMsg, 'warn')
Expand Down

0 comments on commit 7c6e6cc

Please sign in to comment.