Skip to content

Commit

Permalink
[MOD] fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adbusnel committed Dec 3, 2024
1 parent ed672d1 commit 160a47d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/Accounts/SchoolAdm/schoolAccountsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function SchoolAccountsTable ({ status }) {
})
.catch((error) => {
setClassError(true)
toast.error('Un problème est survenu avec la classe.')
toast.error('Un problème est survenu avec la classe.', error.message)

Check warning on line 173 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
})

Check warning on line 174 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement
}

Expand All @@ -187,13 +187,13 @@ export default function SchoolAccountsTable ({ status }) {

removeClasses.push(...selectedUserClasses.filter((cls) => !updatedUserClasses.includes(cls)))

removeClasses.map((classe) => { callAction(classe, '/removeTeacher') })
addClasses.map(classe => { callAction(classe, '/addTeacher') })
removeClasses.map((classe) => { return callAction(classe, '/removeTeacher') })

Check warning on line 190 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 190 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 190 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🕹️ Function is not covered

Warning! Not covered function
addClasses.map(classe => { return callAction(classe, '/addTeacher') })

Check warning on line 191 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 191 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 191 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🕹️ Function is not covered

Warning! Not covered function
} else {
const studentClass = []
studentClass.push(updatedUser.classes)

studentClass.map(classe => { callAction(classe, '/updateStudent') })
studentClass.map(classe => { return callAction(classe, '/updateStudent') })

Check warning on line 196 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 196 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 196 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🕹️ Function is not covered

Warning! Not covered function
}

Check warning on line 197 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🧾 Statement is not covered

Warning! Not covered statement

Check warning on line 197 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch

Check warning on line 197 in src/Components/Accounts/SchoolAdm/schoolAccountsTable.js

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch
if (!classError) { toast.success('Le profil a été mis à jour avec succès.') }
}
Expand Down

0 comments on commit 160a47d

Please sign in to comment.