diff --git a/src/modules/Preservation/views/AddScope/AddScope.tsx b/src/modules/Preservation/views/AddScope/AddScope.tsx index 774db551..16907cbe 100644 --- a/src/modules/Preservation/views/AddScope/AddScope.tsx +++ b/src/modules/Preservation/views/AddScope/AddScope.tsx @@ -355,9 +355,7 @@ const AddScope = (): JSX.Element => { error.data ); showSnackbarNotification( - error.data != null && - error.data.data != null && - error.data.data.length > 0 + error.data?.data?.length > 0 ? error.data.data[0] : error.message, 10000