fix: remove Unsplash text from photo packs

This commit is contained in:
Vicente
2021-05-01 21:32:38 +01:00
parent a1b6832747
commit e88cd0b765

View File

@@ -36,7 +36,7 @@ export default function PhotoInformation(props) {
let photo = language.credit;
// unsplash
if (props.info.photographerURL !== '' && !props.info.offline) {
if (props.info.photographerURL && props.info.photographerURL !== '' && !props.info.offline) {
photo = <a href={props.info.photoURL} target='_blank' rel='noopener noreferrer'>{language.credit}</a>;
credit = <><a href={props.info.photographerURL} target='_blank' rel='noopener noreferrer'>{photographer}</a> <a href='https://unsplash.com?utm_source=mue' target='_blank' rel='noopener noreferrer'>{language.unsplash}</a></>;
}