From ff582e5dcb132b1c6654c155679435507987db45 Mon Sep 17 00:00:00 2001 From: Someone <10882916+InterN0te@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:46:32 +0100 Subject: [PATCH] More readable code Co-authored-by: Tagaishi --- src/widgets/torrent/TorrentTile.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/torrent/TorrentTile.tsx b/src/widgets/torrent/TorrentTile.tsx index 93c7ad673..83f4b8a4b 100644 --- a/src/widgets/torrent/TorrentTile.tsx +++ b/src/widgets/torrent/TorrentTile.tsx @@ -191,7 +191,14 @@ function TorrentTile({ widget }: TorrentTileProps) { )} - {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) + }`}