Update src/reports/components/ReportFilter.jsx

Define translation conditionally

Co-authored-by: Anton Tananaev <anton.tananaev@gmail.com>
This commit is contained in:
microsoldering 2024-12-27 16:48:40 +11:00 committed by GitHub
parent aff58bcda9
commit 5e0d2356cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -186,7 +186,7 @@ const ReportFilter = ({
disabled={disabled}
onClick={() => handleClick('json')}
>
<Typography variant="button" noWrap>{loading ? t('sharedLoading') : t('reportShow')}</Typography>
<Typography variant="button" noWrap>{t(loading ? 'sharedLoading' : 'reportShow')}</Typography>
</Button>
) : (
<SplitButton