From 7c6e6cc29b9a4406e5fa41f4eaab0b794541ed1b Mon Sep 17 00:00:00 2001 From: firelemons Date: Thu, 9 Nov 2023 10:21:18 -0600 Subject: [PATCH] fixed warning notification sometimes throwing an error --- app/javascript/src/validated_form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/src/validated_form.js b/app/javascript/src/validated_form.js index 99831b0f6c..c7e0edf215 100644 --- a/app/javascript/src/validated_form.js +++ b/app/javascript/src/validated_form.js @@ -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')