Skip to content

Commit da2506f

Browse files
author
Павел Ахметчанов
committed
[#106] fixed personId
1 parent dcfe949 commit da2506f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/person-limits/personLimitsModal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ export const openPersonLimitsModal = async (modification, boardData, personLimit
105105

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

111-
if (!personeid) return;
111+
if (!personId) return;
112112

113-
const index = personLimits.limits.findIndex(pl => pl.id === personeid);
113+
const index = personLimits.limits.findIndex(pl => pl.id === personId);
114114

115115
if (index === -1) return;
116116

0 commit comments

Comments
 (0)