Skip to content

Commit

Permalink
Merge pull request #637 from LINCnil/feature/prevent_non_int_id
Browse files Browse the repository at this point in the history
feat: add parseInt on id from user_pias
  • Loading branch information
kevin-atnos authored Feb 21, 2022
2 parents 5ca2f06 + 7e34d1a commit ccf5cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/pia/pia.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export class PiaComponent implements OnInit, DoCheck {
} else {
this.pia.user_pias.forEach(up => {
if (
up.user.id ===
parseInt(up.user.id) ===
this.authService.currentUserValue.resource_owner_id &&
Array.isArray(this.editMode)
) {
Expand Down

0 comments on commit ccf5cf3

Please sign in to comment.