mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:05:22 +02:00
fix: restore Top 50 button visibility in Weekly Sales tab
- WeeklyGrid.tsx: Corrected visibility condition for top50Ranking object structure - WeeklyGrid.tsx: Verified and improved Top 50 filtering and sorting logic
This commit is contained in:
@@ -287,7 +287,11 @@ const WeeklyGrid: React.FC<WeeklyGridProps> = ({ data, top50Ranking, onDrillDown
|
||||
</div>
|
||||
|
||||
{/* Top 50 Filter Toggle */}
|
||||
{top50Ranking && top50Ranking.size > 0 && (
|
||||
{top50Ranking && (
|
||||
(top50Ranking.overall?.size || 0) > 0 ||
|
||||
(top50Ranking.eu?.size || 0) > 0 ||
|
||||
(top50Ranking.uk?.size || 0) > 0
|
||||
) && (
|
||||
<button
|
||||
onClick={() => {
|
||||
const newMode = !showOnlyTop50;
|
||||
|
||||
Reference in New Issue
Block a user