mirror of
https://github.com/mue/mue.git
synced 2026-07-16 05:23:49 +02:00
misc: appropriate log type, ternary operator to prevent errors
This commit is contained in:
@@ -160,10 +160,10 @@ class Quote extends PureComponent {
|
||||
'',
|
||||
) || // talk page link (if applicable) is only removed for English
|
||||
'Unknown';
|
||||
authorimglicense = `© ${photographer}. ${license.value}`;
|
||||
authorimglicense = `© ${photographer}. ${license?.value}`;
|
||||
authorimglicense = authorimglicense.replace(/copyright\s/i, '').replace(/©\s©\s/, '© ');
|
||||
|
||||
if (license.value === 'Public domain') {
|
||||
if (license?.value === 'Public domain') {
|
||||
authorimglicense = null;
|
||||
} else if (photographer.value === 'Unknown' || !photographer) {
|
||||
authorimglicense = null;
|
||||
|
||||
Reference in New Issue
Block a user