refac: feedback list optimisation
This commit is contained in:
@@ -33,7 +33,9 @@
|
||||
let feedbacks = [];
|
||||
|
||||
onMount(async () => {
|
||||
// TODO: feedbacks elo rating calculation should be done in the backend; remove below line later
|
||||
feedbacks = await getAllFeedbacks(localStorage.token);
|
||||
|
||||
loaded = true;
|
||||
|
||||
const containerElement = document.getElementById('users-tabs-container');
|
||||
@@ -117,7 +119,7 @@
|
||||
{#if selectedTab === 'leaderboard'}
|
||||
<Leaderboard {feedbacks} />
|
||||
{:else if selectedTab === 'feedbacks'}
|
||||
<Feedbacks {feedbacks} />
|
||||
<Feedbacks />
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user