Skip to content

Commit

Permalink
[#106] fixed personId
Browse files Browse the repository at this point in the history
  • Loading branch information
Павел Ахметчанов committed Jul 6, 2021
1 parent dcfe949 commit da2506f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/person-limits/personLimitsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ export const openPersonLimitsModal = async (modification, boardData, personLimit

modal.querySelector('#person-limit-edit-button').addEventListener('click', async e => {
e.preventDefault();
const personeid = parseInt(e.target.getAttribute('person-id'), 10);
const personId = parseInt(e.target.getAttribute('person-id'), 10);
e.target.disabled = true;

if (!personeid) return;
if (!personId) return;

const index = personLimits.limits.findIndex(pl => pl.id === personeid);
const index = personLimits.limits.findIndex(pl => pl.id === personId);

if (index === -1) return;

Expand Down

0 comments on commit da2506f

Please sign in to comment.