Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Commit e6e836f

Browse files
authored
Merge pull request #74 from WildCodeSchool/feature/my-albums-info
modif my albums-iinfo
2 parents 3dd42c9 + c7596b3 commit e6e836f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/frontend/web/src/pages/my-albums.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default function MyAlbums() {
3636
void fetchAlbums();
3737
}, []);
3838

39-
const totalSales = albums.reduce((sum, album) => sum + album.sales, 0);
4039
const totalMoney = albums.reduce((sum, album) => sum + album.money_earned, 0);
4140
const averageNotoriety =
4241
albums.length > 0
@@ -69,13 +68,6 @@ export default function MyAlbums() {
6968
</h3>
7069
<img className='mt-0.5 h-6 w-6' src='/assets/star-sign.png' alt='' />
7170
</div>
72-
<div className='flex items-center'>
73-
<h2>{'Total sales:'}</h2>
74-
<h3 className='ml-2 flex items-center text-xl font-bold'>
75-
{totalSales}
76-
</h3>
77-
<img className='mt-0.5 h-6 w-6' src='/assets/album.png' alt='' />
78-
</div>
7971
<div className='flex items-center'>
8072
<h2>{'Total earned money:'}</h2>
8173
<h3 className='ml-2 flex items-center text-xl font-bold'>

0 commit comments

Comments
 (0)