diff --git a/src/components/actions/Error.js b/src/components/actions/Error.js index ea7b929..7084200 100644 --- a/src/components/actions/Error.js +++ b/src/components/actions/Error.js @@ -16,13 +16,13 @@ export const Error = () => ( ); -export function buildErrorStringFromArray(error) { - let errors = [] +export function builfArrayFromObject(error) { + let errors = []; for (let key in error) { - errors.push(key + ": " + error[key]) + errors.push(key + ": " + error[key]); // console.log(key + ": " + error[key]) - } - return errors + } + return errors; } // export default Error; diff --git a/src/components/actions/Msgbox.js b/src/components/actions/Msgbox.js index 421bdba..4d49794 100644 --- a/src/components/actions/Msgbox.js +++ b/src/components/actions/Msgbox.js @@ -3,21 +3,42 @@ import { UList } from "../root/common/Functionality/UnorderedList"; // // Generic Msgbox function Msgbox(props) { - return