Skip to content

Commit

Permalink
cci: prevent wikitext generation if unmodified
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Oct 2, 2022
1 parent e0fb84d commit 5ad0992
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/root/DeputyContributionSurveySection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ export default class DeputyContributionSurveySection implements DeputyUIElement
for ( const obj of this.wikitextLines ) {
if ( typeof obj === 'string' ) {
final.push( obj );
} else {
} else if ( obj.modified ) {
final.push( obj.wikitext );
} else {
final.push( obj.originalWikitext );
}
}

Expand Down

0 comments on commit 5ad0992

Please sign in to comment.