From 8234c271234dd731ae9d307b0700b799fe1e7160 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Fri, 2 Jun 2023 14:52:44 -0700 Subject: [PATCH] fix: show message on error alert if text is null --- packages/client/src/os.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/client/src/os.ts b/packages/client/src/os.ts index 0aa823d05..0636bfd3e 100644 --- a/packages/client/src/os.ts +++ b/packages/client/src/os.ts @@ -277,6 +277,9 @@ export function alert(props: { text?: string | null; }): Promise { return new Promise((resolve, reject) => { + if (props.text == null && props.type === "error") { + props.text = "An unknown error occured!" + } popup( MkDialog, props,