Skip to content

Commit f2f926e

Browse files
amend names to be accurate, were switched prior
1 parent 76670bb commit f2f926e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/scripts.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -144,19 +144,19 @@ function setStateProps(index, state) {
144144
if (state.props.license != 'unknown' | state.props.license != 'cc-0' ) {
145145

146146
formattedLicense = state.props.license.replace(/-/, ' ').toUpperCase();
147-
state.props.licenseFull = formattedLicense + ' 4.0';
147+
state.props.licenseShort = formattedLicense + ' 4.0';
148148

149-
// set licenseShort
149+
// set licenseFhort
150150

151151
shortName = state.props.license.replace(/cc-/, '');
152152
state.props.licenseURL = 'https://creativecommons.org/licenses/'+ shortName +'/4.0/';
153153
}
154154

155155
if (state.props.license == 'cc-0') {
156156

157-
state.props.licenseFull = 'CC0 1.0';
157+
state.props.licenseShort = 'CC0 1.0';
158158

159-
// set licenseShort
159+
// set licenseFull
160160

161161
state.props.licenseURL = 'https://creativecommons.org/publicdomain/zero/1.0/';
162162
}
@@ -255,7 +255,7 @@ function renderMarkingFormats(state) {
255255
type = "marked";
256256
}
257257

258-
let mark = attribution.title + ' © ' + attribution.workCreationYear + ' by ' + attribution.creator + ' is ' + type + ' ' + state.props.licenseFull + '. To view a copy of this license, visit ' + state.props.licenseURL;
258+
let mark = attribution.title + ' © ' + attribution.workCreationYear + ' by ' + attribution.creator + ' is ' + type + ' ' + state.props.licenseShort + '. To view a copy of this license, visit ' + state.props.licenseURL;
259259

260260
document.querySelector('#mark-your-work .plain-text.mark').textContent = mark;
261261
}
@@ -409,7 +409,7 @@ function watchFieldsets(fieldsets, state) {
409409

410410
renderMarkYourWork(state);
411411

412-
console.log(state.props.licenseFull);
412+
console.log(state.props.licenseShort);
413413

414414
});
415415

0 commit comments

Comments
 (0)