with SLEEVE_8, fix workForFaction

This commit is contained in:
Olivier Gagnon
2022-03-20 23:27:53 -04:00
parent 05fe14a5ed
commit 699ae2e967
3 changed files with 9 additions and 88 deletions
+1 -2
View File
@@ -66,8 +66,7 @@ export function AlertManager(): React.ReactElement {
{alerts.length > 0 && (
<Modal open={true} onClose={close}>
<Box overflow="scroll" sx={{ overflowWrap: "break-word", whiteSpace: "pre-line" }}>
{typeof alerts[0].text === "string" && <Typography>{alerts[0].text}</Typography>}
{typeof alerts[0].text !== "string" && alerts[0].text}
<Typography>{alerts[0].text}</Typography>
</Box>
</Modal>
)}