diff --git a/src/components/IOC/CreateIOC/CreateIOC.js b/src/components/IOC/CreateIOC/CreateIOC.js index 40186ad1dfc9b75a0105bd35559e2925116329ff..6b057a8c9b5431f555f276f5e9ddff4a258fcafe 100644 --- a/src/components/IOC/CreateIOC/CreateIOC.js +++ b/src/components/IOC/CreateIOC/CreateIOC.js @@ -209,10 +209,14 @@ export function CreateIOC() { )} {error ? ( - <Alert severity="error">{getErrorMessage(error)}</Alert> - ) : ( - <></> - )} + <Alert severity="error">{renderErrorMessage(error)}</Alert> + ) : null} + {loading ? ( + <LinearProgress + aria-busy="true" + aria-label="Creating IOC, please wait" + /> + ) : null} <Stack direction="row" justifyContent="flex-end" @@ -237,12 +241,6 @@ export function CreateIOC() { Create </Button> </Stack> - {loading ? ( - <LinearProgress - aria-busy="true" - aria-label="Creating IOC, please wait" - /> - ) : null} </Stack> </RootPaper> );