Skip to content

Commit

Permalink
Removed zoom level label from compliance (#591)
Browse files Browse the repository at this point in the history
Co-authored-by: souyahia-monk <[email protected]>
  • Loading branch information
souyahia-monk and souyahia-monk authored Oct 10, 2023
1 parent e9fbb60 commit 722ee46
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ export default function useSubtitle({

if (badQuality && iqa.reasons) {
iqa.reasons.forEach((reason, index) => {
const first = index === 0;
reasons.push(first ? t(`uploadCenter.subtitle.reasons.${reason}`)
: `${t('uploadCenter.subtitle.reasonsJoin')} ${t(`uploadCenter.subtitle.reasons.${reason}`)}`);
const errorCode = validErrorCodes.find((code) => reason.startsWith(code));
if (errorCode && errorCode !== 'UNKNOWN_SIGHT') {
const first = index === 0;
reasons.push(first ? t(`uploadCenter.subtitle.reasons.${reason}`)
: `${t('uploadCenter.subtitle.reasonsJoin')} ${t(`uploadCenter.subtitle.reasons.${reason}`)}`);
}
});
}

Expand Down

0 comments on commit 722ee46

Please sign in to comment.