Skip to content

Commit 319c192

Browse files
committed
chore: more error toast options
1 parent 6cd681e commit 319c192

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/2.toasts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ fn.toast = (arg) => {
2222

2323
fn.errorToast = (error) => {
2424
const toast = {
25-
title: error.name || 'Error',
26-
text: error.message || error,
25+
title: error.name || error.title || 'Error',
26+
text: error.message || error.text || error,
2727
css: {
2828
'background-color': 'rgba(200,0,0,0.6)',
2929
}

0 commit comments

Comments
 (0)