mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 03:47:40 -07:00
fix: show message on error alert if text is null
This commit is contained in:
parent
cd12015aaf
commit
8234c27123
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue