Skip to content

Commit

Permalink
chore: modify message when an instuctor is added to a class
Browse files Browse the repository at this point in the history
  • Loading branch information
sergivalero20 committed Aug 16, 2024
1 parent b45afab commit 41a9526
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/Instructors/ManageInstructors/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const ManageInstructors = () => {
{ limit: false, class_id: classIdDecoded },
));
if (rowsSelected.length === 1) {
setToastMessage(`${rowsSelected[0]} has been successfully assigned to Class ${classInfo.className}`);
setToastMessage(`${rowsSelected[0]} has been successfully added to Class ${classInfo.className}`);
} else if (rowsSelected.length > 1) {
setToastMessage(`${rowsSelected.join()} have been successfully assigned to Class ${classInfo.className}`);
setToastMessage(`${rowsSelected.join()} have been successfully added to Class ${classInfo.className}`);
}
setShowToast(true);
} catch (error) {
Expand Down

0 comments on commit 41a9526

Please sign in to comment.