Skip to content

Commit

Permalink
SWED-2334 switch dialog warnings from error to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Dec 10, 2024
1 parent fa31542 commit cb0b6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/main/dialog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@ const _activateDialogElement = (dialog) => {
);

if (!dialogInvokers.length) {
console.error(
console.warn(
"There was no open button implemented for the dialog. Please make sure you add at least 1 button with the correct attributes to your HTML for the script to work (or do not call this script and use the JS methods on your side)",
);

return;
}

if (!closeDialogButtons.length) {
console.error(
console.warn(
"There was no close button implemented for the dialog. Please make sure you add at least 1 button with the correct attributes to your HTML for the script to work (or do not call this script and use the JS methods on your side)",
);

Expand Down

0 comments on commit cb0b6f7

Please sign in to comment.