Skip to content

Commit af27c4f

Browse files
committed
Match attrToFull to act like attrToShort
1 parent fc4044e commit af27c4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/license-utilities.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function attrToShort(attr) {
2828
}
2929

3030
function attrToFull(attr) {
31+
if (attr.BY === undefined) { return undefined }
3132
if (!attr.BY) { return 'CC0 1.0 Universal' }
3233
let base = 'Attribution'
3334
if (attr.NC) { base += '-NonCommercial' }

0 commit comments

Comments
 (0)