More readable code

Co-authored-by: Tagaishi <Tagaishi@hotmail.ch>
This commit is contained in:
Someone
2023-11-07 11:46:32 +01:00
committed by GitHub
parent 17871f62f5
commit ff582e5dcb

View File

@@ -191,7 +191,14 @@ function TorrentTile({ widget }: TorrentTileProps) {
)}
<Text color="dimmed" size="xs">
{t('card.footer.lastUpdated', { time: humanizedDuration })} - {t('card.footer.ratioGlobal')} : {ratioGlobal === -1 ? "∞" : ratioGlobal.toFixed(2)} {widget.properties.displayRatioWithFilter && ` - ${t('card.footer.ratioWithFilter')} : ${ratioWithFilter === -1 ? "∞" : ratioWithFilter.toFixed(2)}`}
{t('card.footer.lastUpdated', { time: humanizedDuration })}
{` - ${t('card.footer.ratioGlobal')} : ${
ratioGlobal === -1 ? '∞' : ratioGlobal.toFixed(2)
}`}
{widget.properties.displayRatioWithFilter &&
` - ${t('card.footer.ratioWithFilter')} : ${
ratioWithFilter === -1 ? '∞' : ratioWithFilter.toFixed(2)
}`}
</Text>
</Group>
</Flex>