Skip to content

Commit

Permalink
Merge pull request #2436 from HHS/al-fix-spelling-on-fe-to-match-be
Browse files Browse the repository at this point in the history
Fix incorrect number of reports on QA
  • Loading branch information
GarrettEHill authored Oct 29, 2024
2 parents d69cb55 + cf13cb5 commit a609736
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions frontend/src/pages/QADashboard/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const DASHBOARD_DATA = [
records: '1',
data: [
{
fitered_reports: 38462,
filtered_reports: 38462,
},
],
},
Expand Down Expand Up @@ -380,7 +380,7 @@ describe('Resource Dashboard page', () => {
records: '1',
data: [
{
fitered_reports: 38462,
filtered_reports: 38462,
},
],
},
Expand Down Expand Up @@ -526,7 +526,7 @@ describe('Resource Dashboard page', () => {
records: '1',
data: [
{
fitered_reports: 38462,
filtered_reports: 38462,
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/QADashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default function QADashboard() {
const roleGraphData = dashboardData.find((item) => item.data_set === 'role_graph');
const activityWidgetData = dashboardData.find((item) => item.data_set === 'activity_widget');
const filteredReports = activityWidgetData.data.length
? activityWidgetData.data[0].filtered_report : 0;
? activityWidgetData.data[0].filtered_reports : 0;

const deliveryMethod = {
filteredReports,
Expand Down
1 change: 0 additions & 1 deletion src/services/currentUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export async function currentUserId(req, res) {
httpContext.set('impersonationUserId', Number(res.locals.userId));
return Number(res.locals.userId);
}

// bypass authorization, used for cucumber UAT and axe accessibility testing
if (process.env.NODE_ENV !== 'production' && process.env.BYPASS_AUTH === 'true') {
const userId = process.env.CURRENT_USER_ID;
Expand Down

0 comments on commit a609736

Please sign in to comment.