Seemed to have fixed it

This commit is contained in:
KevinWh0 2024-02-16 19:01:54 +01:00
parent 441523b6d4
commit 6240f78c83
1 changed files with 11 additions and 4 deletions

View File

@ -108,10 +108,17 @@ export function promiseDialog<T extends Promise<any>>(
if (onFailure) {
onFailure(err);
} else {
alert({
type: 'error',
text: err,
});
if (err.message) {
alert({
type: 'error',
text: err.message,
});
} else {
alert({
type: 'error',
text: err,
});
}
}
});