Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MCrawleyHomeOffice committed Aug 17, 2022
1 parent d46a994 commit 0711341
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/correct-mistakes/behaviours/about-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ module.exports = superclass => class AboutError extends superclass {
// Regardless of whether we are truncating these fields
// We still need to store them against the appropriate "-truncated" property for our confirm page
truncateConfigs.forEach(config => {
req.sessionModel.set(config.id + '-truncated', req.form.values[config.id] ? req.form.values[config.id].slice(0, config.max) : '');
req.sessionModel.set(
config.id + '-truncated',
req.form.values[config.id] ? req.form.values[config.id].slice(0, config.max) : ''
);
});

super.saveValues(req, res, callback);
Expand Down

0 comments on commit 0711341

Please sign in to comment.