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 5ff3bf7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/features/Dashboard/WeeklySchedule/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const WeeklySchedule = () => {
<div className="class-text">
<LinkWithQuery
className="class-name"
to={`/courses/${encodeURIComponent(classInfo?.masterCourseId)}/${classInfo?.classId}?previous=courses`}
to={`/courses/${encodeURIComponent(classInfo?.masterCourseId)}/${encodeURIComponent(classInfo?.classId)}?previous=courses`}
>
{classInfo?.className}
</LinkWithQuery>
Expand Down
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 5ff3bf7

Please sign in to comment.