fix export report route

This commit is contained in:
Francis Cao 2025-07-22 11:10:37 -07:00
parent 7670ec4136
commit 6d124e7bb0
2 changed files with 12 additions and 12 deletions

View file

@ -12,7 +12,9 @@ export function ReportBody({ children }) {
return (
<div className={styles.body}>
<DownloadButton filename={report.name} data={report.data} />
{report.type !== 'revenue' && report.type !== 'attribution' && (
<DownloadButton filename={report.name} data={report.data} />
)}
{children}
</div>
);