From 4cbf73140c3d62f6c9bbe6f1e64d3cc26c8d6ae3 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 0aa823d059..0636bfd3e2 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,