@@ -16,4 +16,13 @@ const Error = () => (
);
-export default Error;
+export function buildErrorStringFromArray(error) {
+ let errors = []
+ for (let key in error) {
+ errors.push(key + ": " + error[key])
+ // console.log(key + ": " + error[key])
+ }
+ return errors
+}
+
+// export default Error;
diff --git a/src/components/root/Pages/GenericList.js b/src/components/root/Pages/GenericList.js
index e6171cb..df04fea 100644
--- a/src/components/root/Pages/GenericList.js
+++ b/src/components/root/Pages/GenericList.js
@@ -1,7 +1,7 @@
import React, { Component } from "react";
import CompTable from "../common/Tables/CompTable";
import { callAPI } from "../../actions/API"
-import Error from "../../actions/Error";
+import { Error } from "../../actions/Error";
// Missing parent page,
// Most of the good stuff is happening in UpcomingSingle, which does the