fix: show message on error alert if text is null

This commit is contained in:
ThatOneCalculator 2023-06-02 14:52:44 -07:00
parent cd12015aaf
commit 8234c27123

View file

@ -277,6 +277,9 @@ export function alert(props: {
text?: string | null; text?: string | null;
}): Promise<void> { }): Promise<void> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
if (props.text == null && props.type === "error") {
props.text = "An unknown error occured!"
}
popup( popup(
MkDialog, MkDialog,
props, props,