Commit 90e6ca7c authored by Micaela Lechmann's avatar Micaela Lechmann
Browse files

fixes

parent 4e4b94c4
Showing with 9 additions and 5 deletions
+9 -5
......@@ -15,12 +15,14 @@ const GroupInput = ({
const getValue = (obj) => {
let value = "";
Object.keys(obj).splice(2).forEach((key) => {
Object.keys(obj).forEach((key) => {
if (!obj[key]) return;
if (!value) value = obj[key];
if (!value) {
value = obj[key];
return;
}
value = `${value} - ${obj[key]}`;
});
console.log(value);
return value;
};
......@@ -31,7 +33,8 @@ const GroupInput = ({
habilidades.map((habilidade) => (
<ListSkills
value={getValue({
...habilidade,
nome: habilidade.nome,
instituicao: habilidade.instituicao,
data_inicio: Intl.DateTimeFormat("pt-br").format(
new Date(habilidade.data_inicio)
),
......@@ -45,7 +48,8 @@ const GroupInput = ({
experiencias.map((experiencia) => (
<ListSkills
value={getValue({
...experiencia,
local: experiencia.local,
funcao: experiencia.funcao,
data_inicio: Intl.DateTimeFormat("pt-br").format(
new Date(experiencia.data_inicio)
),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment