mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
Merge pull request #3970 from phyzical/feature/prompt-error-support
FIX: Prompt Add user friendly message to avoid throwing recovery screen for invalid choices
This commit is contained in:
commit
b19f6c5f82
@ -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