From 0ae6e17ef2fdf330f2883949afc0af6fafd5e73e Mon Sep 17 00:00:00 2001 From: Kira Miller Date: Wed, 6 Mar 2024 22:57:05 +0000 Subject: [PATCH] fix: PR requests --- .../BudgetDetailActivityTabContents.jsx | 8 ++++---- .../{NoBnRBudgetActivity.jsx => NoBnEBudgetActivity.jsx} | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/components/learner-credit-management/empty-state/{NoBnRBudgetActivity.jsx => NoBnEBudgetActivity.jsx} (97%) diff --git a/src/components/learner-credit-management/BudgetDetailActivityTabContents.jsx b/src/components/learner-credit-management/BudgetDetailActivityTabContents.jsx index d6be7a7b85..9720c607a9 100644 --- a/src/components/learner-credit-management/BudgetDetailActivityTabContents.jsx +++ b/src/components/learner-credit-management/BudgetDetailActivityTabContents.jsx @@ -7,7 +7,7 @@ import BudgetDetailRedemptions from './BudgetDetailRedemptions'; import BudgetDetailAssignments from './BudgetDetailAssignments'; import { useBudgetDetailActivityOverview, useBudgetId, useSubsidyAccessPolicy } from './data'; import NoAssignableBudgetActivity from './empty-state/NoAssignableBudgetActivity'; -import NoBnRBudgetActivity from './empty-state/NoBnRBudgetActivity'; +import NoBnEBudgetActivity from './empty-state/NoBnEBudgetActivity'; const BudgetDetailActivityTabContents = ({ enterpriseUUID, enterpriseFeatures }) => { const isTopDownAssignmentEnabled = enterpriseFeatures.topDownAssignmentRealTimeLcm; @@ -33,13 +33,13 @@ const BudgetDetailActivityTabContents = ({ enterpriseUUID, enterpriseFeatures }) ); } - const hasSpentTransactions = !!budgetActivityOverview.spentTransactions?.count > 0; - const hasContentAssignments = !!budgetActivityOverview.contentAssignments?.count > 0; + const hasSpentTransactions = budgetActivityOverview.spentTransactions?.count > 0; + const hasContentAssignments = budgetActivityOverview.contentAssignments?.count > 0; if (!isTopDownAssignmentEnabled || !subsidyAccessPolicy?.isAssignable) { return ( <> - {!hasSpentTransactions && ()} + {!hasSpentTransactions && ()} ); diff --git a/src/components/learner-credit-management/empty-state/NoBnRBudgetActivity.jsx b/src/components/learner-credit-management/empty-state/NoBnEBudgetActivity.jsx similarity index 97% rename from src/components/learner-credit-management/empty-state/NoBnRBudgetActivity.jsx rename to src/components/learner-credit-management/empty-state/NoBnEBudgetActivity.jsx index a1cc30ba72..ecfd3f3c06 100644 --- a/src/components/learner-credit-management/empty-state/NoBnRBudgetActivity.jsx +++ b/src/components/learner-credit-management/empty-state/NoBnEBudgetActivity.jsx @@ -22,7 +22,7 @@ const EnrollAndSpendIllustration = (props) => ( ); -const NoBnRBudgetActivity = () => { +const NoBnEBudgetActivity = () => { const isLargeOrGreater = useIsLargeOrGreater(); return ( @@ -96,4 +96,4 @@ const NoBnRBudgetActivity = () => { ); }; -export default NoBnRBudgetActivity; +export default NoBnEBudgetActivity;