mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
Add auser friendly message to avoid throwing recovery screen
feature/prompt-error-support File List: src/ui/React/PromptManager.tsx
This commit is contained in:
parent
39cf0cb57f
commit
3465f12f1d
@ -139,6 +139,10 @@ function PromptMenuSelect({ prompt, resolve }: IContentProps): React.ReactElemen
|
||||
return content;
|
||||
};
|
||||
|
||||
if (!Array.isArray(prompt?.options?.choices)) {
|
||||
return <Typography>Error: Please provide an array of string choices</Typography>;
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<div style={{ display: "flex", alignItems: "center", paddingTop: "10px" }}>
|
||||
|
Loading…
Reference in New Issue
Block a user