Skip to content

Commit

Permalink
improves play.auth string check in user admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
clpetersonucf committed Nov 14, 2023
1 parent 2243146 commit 19b4642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/user-admin-instance-played.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const UserAdminInstancePlayed = ({play, index}) => {
<label>Completed:</label> { play.is_complete == "1" ? 'Yes' : 'No' }
</div>
<div>
<label>Context:</label> {play.auth == 'LTI' ? 'LTI' : 'Web' }
<label>Context:</label> {play.auth && typeof play.auth == 'string' && play.auth.toLowerCase() == 'lti' ? 'LTI' : 'Web' }
</div>
</div>
</li>
Expand Down

0 comments on commit 19b4642

Please sign in to comment.