Skip to content

Commit

Permalink
fix order "C.fiscal", remover devUser quem-somos
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas committed Oct 5, 2023
1 parent a86d4f7 commit 3844940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions next/pages/quem-somos.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ function getRoleScore(role) {
return 4;
case "gerente":
return 5;
case "membro do conselho fiscal":
return 10;
default:
return 6;
}
Expand Down Expand Up @@ -251,7 +253,6 @@ const TeamBox = ({
}

export default function QuemSomos({ data }) {

const sortPeople = (array) => {
const sortPeopleArray = array

Expand Down Expand Up @@ -284,7 +285,7 @@ export default function QuemSomos({ data }) {
})
}

return removeDuplicates(data)
return removeDuplicates(data).filter(obj => obj.node.firstName !== "API User" && obj.node.firstName !== "Staging")
}

const [allPeople] = useState(sortPeople(data))
Expand Down

0 comments on commit 3844940

Please sign in to comment.