Skip to content

Commit

Permalink
fixup! feat: Adding human readable 403 error access restricted
Browse files Browse the repository at this point in the history
  • Loading branch information
farhaanbukhsh committed Dec 15, 2024
1 parent d5a0e53 commit 3c103c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/course-outline/page-alerts/PageAlerts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,8 @@ const PageAlerts = ({
dismissError={() => dispatch(dismissError(msgObj.key))}
>
<Alert.Heading>{msgObj.title}</Alert.Heading>
{(typeof msgObj.desc === 'object')
? msgObj.desc : <Truncate lines={2}>{msgObj.desc}</Truncate>}
{(typeof msgObj.desc === 'string')
? <Truncate lines={2}>{msgObj.desc}</Truncate> : msgObj.desc}
</ErrorAlert>
) : (
<Alert
Expand Down

0 comments on commit 3c103c9

Please sign in to comment.