From 63c764b1c3ac14d954130db48091129f506e6415 Mon Sep 17 00:00:00 2001
From: Johannes Buechele <johannes@bujo.at>
Date: Wed, 2 Aug 2023 11:53:35 +0200
Subject: [PATCH] fixed creator mapping

---
 .../src/components/bundel/WorkCreatorFormView.jsx    | 12 ++++++------
 Frontend/src/config.js                               |  2 +-
 Frontend/src/locate/de/translate.json                |  2 +-
 Frontend/src/locate/en/translate.json                |  2 +-
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/Frontend/src/components/bundel/WorkCreatorFormView.jsx b/Frontend/src/components/bundel/WorkCreatorFormView.jsx
index 7328537..79cf498 100644
--- a/Frontend/src/components/bundel/WorkCreatorFormView.jsx
+++ b/Frontend/src/components/bundel/WorkCreatorFormView.jsx
@@ -3,12 +3,12 @@ import React from "react";
 
 const WorkCreatorFormView = (props) => {
   var creator = {
-    firstName: props.creator.firstName,
-    lastName: props.creator.lastName,
-    email: props.creator.email,
-    pseudonym: props.creator.pseudonym,
-    percentage: props.creator.percentage,
-    url: props.creator.url,
+    firstName: props?.creator?.author.firstName,
+    lastName: props?.creator?.author.lastName,
+    email: props?.creator?.author.email,
+    pseudonym: props?.creator?.author.pseudonym,
+    percentage: props?.creator?.percentage,
+    url: props?.creator?.author.url,
   };
 
   function setNewVal(value, newValue) {
diff --git a/Frontend/src/config.js b/Frontend/src/config.js
index b6660da..9f2f8d2 100644
--- a/Frontend/src/config.js
+++ b/Frontend/src/config.js
@@ -1,5 +1,5 @@
 const REACT_APP_API =
-  window.REACT_APP_API || "http://localhost:8080/api-service";
+  window.REACT_APP_API || "https://api.dev.fairregister.net/api-service";
 const KEYCLOAK_CLIENT_ID =
   window.KEYCLOAK_CLIENT_ID || "fairregister-development";
 
diff --git a/Frontend/src/locate/de/translate.json b/Frontend/src/locate/de/translate.json
index 4996a82..097ec2a 100644
--- a/Frontend/src/locate/de/translate.json
+++ b/Frontend/src/locate/de/translate.json
@@ -258,7 +258,7 @@
         "LicenseInformation": "Lizenz Information",
         "License": "Lizenz",
         "DALICCLizenz": "DALICC-Lizenz",
-        "Participant": "Beteiligte",
+        "Participant": "Urheber oder Mitwirkende",
         "Authors": "Urheber:innen",
         "DeleteAuthor": "Urheber:in löschen",
         "AddAuthor": "Urheber:in hinzufügen",
diff --git a/Frontend/src/locate/en/translate.json b/Frontend/src/locate/en/translate.json
index 397c3da..35e6cb8 100644
--- a/Frontend/src/locate/en/translate.json
+++ b/Frontend/src/locate/en/translate.json
@@ -258,7 +258,7 @@
         "LicenseInformation": "License Information",
         "License": "License",
         "DALICCLizenz": "DALICC-License",
-        "Participant": "Participant",
+        "Participant": "Creator or Contributors",
         "Authors": "Authors",
         "DeleteAuthor": "delete author",
         "AddAuthor": "add author",
-- 
GitLab