We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0dda75 commit e099bb6Copy full SHA for e099bb6
src/shared/components/Leaderboard/LeaderboardTable/index.jsx
@@ -201,7 +201,7 @@ export default function LeaderboardTable(props) {
201
})
202
);
203
204
- return (
+ return competitors.length ? (
205
<table styleName={`${stylesName}.LeaderboardTable`}>
206
<thead>
207
<tr styleName={`${stylesName}.table-header`}>
@@ -241,6 +241,8 @@ export default function LeaderboardTable(props) {
241
{renderTableRows(competitors)}
242
</tbody>
243
</table>
244
+ ) : (
245
+ <h2 style={{ textAlign: 'center' }}>No Data Available</h2>
246
247
}
248
0 commit comments