Skip to content

Commit

Permalink
fix: alert message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
maryam4s26 committed Jan 23, 2024
1 parent bf88b93 commit eb96cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialogs/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class AlertDialog extends Dialog {
if (this.args.type === 'error') {
const {error} = this.args;
const msg = error instanceof Error
? (error.stack ? error.stack : error)
? (error.message ? error.message : error)
: String(error);

children.push(h(TextareaField, {value: msg, readonly: true, placeholder: this.args.message}));
Expand Down

0 comments on commit eb96cd0

Please sign in to comment.