From 3c103c960a0c7f855b71f65e61b1981ae6230795 Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Sun, 15 Dec 2024 19:35:25 +0530 Subject: [PATCH] fixup! feat: Adding human readable 403 error access restricted --- src/course-outline/page-alerts/PageAlerts.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/course-outline/page-alerts/PageAlerts.jsx b/src/course-outline/page-alerts/PageAlerts.jsx index bed95754f..7dc50010a 100644 --- a/src/course-outline/page-alerts/PageAlerts.jsx +++ b/src/course-outline/page-alerts/PageAlerts.jsx @@ -395,8 +395,8 @@ const PageAlerts = ({ dismissError={() => dispatch(dismissError(msgObj.key))} > {msgObj.title} - {(typeof msgObj.desc === 'object') - ? msgObj.desc : {msgObj.desc}} + {(typeof msgObj.desc === 'string') + ? {msgObj.desc} : msgObj.desc} ) : (