Front: Prettier

This commit is contained in:
Arthur Jamet 2024-01-22 14:51:57 +01:00 committed by Zoe Roux
parent fa969fa702
commit 5f7ef2a18e
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ const MediaInfoTable = ({
if (trackTable.length == 0) { if (trackTable.length == 0) {
return undefined; return undefined;
} }
const singleTrack = trackTable.length == 1 const singleTrack = trackTable.length == 1;
return trackTable.reduce( return trackTable.reduce(
(collected, audioTrack, index) => ({ (collected, audioTrack, index) => ({
...collected, ...collected,
@ -45,7 +45,7 @@ const MediaInfoTable = ({
[singleTrack ? t(s) : `${t(s)} ${index + 1}`]: [ [singleTrack ? t(s) : `${t(s)} ${index + 1}`]: [
audioTrack.displayName, audioTrack.displayName,
// Only show it if there is more than one track // Only show it if there is more than one track
(audioTrack.isDefault && !singleTrack) ? t("mediainfo.default") : undefined, audioTrack.isDefault && !singleTrack ? t("mediainfo.default") : undefined,
audioTrack.isForced ? t("mediainfo.forced") : undefined, audioTrack.isForced ? t("mediainfo.forced") : undefined,
audioTrack.codec, audioTrack.codec,
] ]