diff --git a/src/helpers/background.ts b/src/helpers/background.ts index c6963865..f2bcf3c4 100644 --- a/src/helpers/background.ts +++ b/src/helpers/background.ts @@ -34,6 +34,8 @@ const updateAssignments = async () => { description: assignment.description ? assignment.description.startsWith('\xC2\x9E\xC3\xA9\x65') ? assignment.description.substr(5) + : assignment.description.startsWith('\x9E\xE9\x65') + ? assignment.description.substr(3) : assignment.description : '', })); diff --git a/src/redux/actions/assignments.ts b/src/redux/actions/assignments.ts index 23aff0d4..964fee40 100644 --- a/src/redux/actions/assignments.ts +++ b/src/redux/actions/assignments.ts @@ -43,6 +43,8 @@ export function getAssignmentsForCourse(courseId: string): IThunkResult { description: result.description ? result.description.startsWith('\xC2\x9E\xC3\xA9\x65') ? result.description.substr(5) + : result.description.startsWith('\x9E\xE9\x65') + ? result.description.substr(3) : result.description : '', })); @@ -82,6 +84,8 @@ export function getAllAssignmentsForCourses(courseIds: string[]): IThunkResult { description: assignment.description ? assignment.description.startsWith('\xC2\x9E\xC3\xA9\x65') ? assignment.description.substr(5) + : assignment.description.startsWith('\x9E\xE9\x65') + ? assignment.description.substr(3) : assignment.description : '', })); diff --git a/src/redux/actions/notices.ts b/src/redux/actions/notices.ts index 633d5156..65a9366d 100644 --- a/src/redux/actions/notices.ts +++ b/src/redux/actions/notices.ts @@ -35,6 +35,8 @@ export function getNoticesForCourse(courseId: string): IThunkResult { content: result.content ? result.content.startsWith('\xC2\x9E\xC3\xA9\x65') ? result.content.substr(5) + : result.content.startsWith('\x9E\xE9\x65') + ? result.content.substr(3) : result.content : '', })); @@ -74,6 +76,8 @@ export function getAllNoticesForCourses(courseIds: string[]): IThunkResult { content: notice.content ? notice.content.startsWith('\xC2\x9E\xC3\xA9\x65') ? notice.content.substr(5) + : notice.content.startsWith('\x9E\xE9\x65') + ? notice.content.substr(3) : notice.content : '', }));