Skip to content

Commit

Permalink
fix: fouls register
Browse files Browse the repository at this point in the history
  • Loading branch information
TI JONNY committed Dec 9, 2024
1 parent 3343881 commit a7d5f74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# REACT_APP_API_PATH=http://localhost:3000/
REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/
REACT_APP_API_PATH=http://localhost:3000/
# REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ const Beneficiarios = () => {


const FilterRegistration = (fouls: any) => {
const array = [];
const array: any = [];
for (const foul of fouls) {
array.push(foul.registration);
if (!array!.find((props: any) => props === foul.id)) {
array.push(foul.registration);
}
}
return array;
};
Expand Down Expand Up @@ -100,9 +102,10 @@ const Beneficiarios = () => {
}, [props.meeting]);

const FilterId = (fouls: any) => {
const array = [];
const array: any = [];
for (const foul of fouls) {
array.push(foul.id);
if (!array!.find((props: any) => props === foul.id))
array.push(foul.id);
}

return array;
Expand Down

0 comments on commit a7d5f74

Please sign in to comment.