Skip to content

Commit c9ac7da

Browse files
committed
peterson-implement-no-badges-found-message
1 parent 6e5fe3b commit c9ac7da

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/UserProfile/AssignBadgePopup.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function AssignBadgePopup(props) {
9898
}}
9999
/>
100100
<div style={{ overflowY: 'scroll', height: '75vh' }}>
101-
{!isLoadingBadge && (props.test ?? filteredBadges.length > 0) ? (
101+
{!isLoadingBadge && (props.isTableOpen ?? filteredBadges.length > 0) ? (
102102
<Table data-testid="test-badgeResults" className={darkMode ? 'text-light' : ''}>
103103
<thead>
104104
<tr>
@@ -139,7 +139,7 @@ function AssignBadgePopup(props) {
139139
Loading Badges...
140140
</h3>
141141

142-
<Spinner />
142+
<Spinner color="primary"/>
143143
</div>
144144
) : (
145145
!isLoadingBadge &&

src/components/UserProfile/__tests__/AssignBadgePopup.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const tip2 = 'Want to assign multiple of the same badge to a person? Repeat the
3232
const renderComponent = () => {
3333
render(
3434
<Provider store={store}>
35-
<AssignBadgePopup test={true} />
35+
<AssignBadgePopup isTableOpen={true} />
3636
</Provider>,
3737
);
3838
};

0 commit comments

Comments
 (0)