fix: show message on error alert if text is null
This commit is contained in:
parent
35e72bfca7
commit
4cbf73140c
|
@ -277,6 +277,9 @@ export function alert(props: {
|
|||
text?: string | null;
|
||||
}): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (props.text == null && props.type === "error") {
|
||||
props.text = "An unknown error occured!"
|
||||
}
|
||||
popup(
|
||||
MkDialog,
|
||||
props,
|
||||
|
|
Loading…
Reference in New Issue