Skip to content

Commit

Permalink
Fix non-admins viewing stats
Browse files Browse the repository at this point in the history
  • Loading branch information
hbiede committed Aug 31, 2020
1 parent b8994c9 commit af6862f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "la-feedback-system",
"version": "1.4.6",
"version": "1.4.7",
"private": true,
"license": "Apache-2.0",
"description": "A website to gather feedback from students after interactions with LAs",
Expand Down
1 change: 1 addition & 0 deletions src/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"changes": [
"## 1.4.7\n- Allow viewing stats as a non-admin",
"## 1.4.6\n- Add stats to admin table",
"## 1.4.5\n- Adjust student form wording\n- Fix LA adjustments for admins\n- Fix Z index for modals",
"## 1.4.4\n- Add interaction count table",
Expand Down
2 changes: 0 additions & 2 deletions src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ const NavBar = ({ adminAsLA, toggleAdminAsLA }: Props) => {
}, [setStatsVisibility]);

const toggleStats = useCallback(() => {
if (!isAdmin) return;

if (showingStats) {
setStatsVisibility(false);
} else {
Expand Down

0 comments on commit af6862f

Please sign in to comment.