Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/**
* ID for the error message div
*
* @type {String}
* @private
*/
errorId: computedErrorId('id').readOnly(),
/**
* ID for the help text div
*
* @type {String}
* @private
*/
helpTextId: computedHelpTextId('id').readOnly(),
/**
* Flag indicating whether to render the error component
*
* @type {Boolean}
* @private
*/
shouldRenderError: computed('error', function() {
let error = this.get('error');
return error && typeof error !== 'boolean';
}).readOnly(),
});