Fix crashing bug in MajorErrorMessage

Uhhh oops did I just not test this refactor at all? lmao
This commit is contained in:
Emi Matchu 2022-09-14 17:41:25 -07:00
parent aa150f4d4e
commit 2b19c4f99d

View file

@ -508,14 +508,14 @@ export function MajorErrorMessage({ error = null, variant = "unexpected" }) {
</>
)}
</Box>
{message && (
{error && (
<Box gridArea="details" fontSize="xs" opacity="0.8">
<WarningIcon
marginRight="1.5"
marginTop="-2px"
aria-label="Error message"
/>
"{getGraphQLErrorMessage(message)}"
"{getGraphQLErrorMessage(error)}"
</Box>
)}
</Grid>