Skip to content

Commit

Permalink
remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Sep 13, 2024
1 parent 7e466e1 commit 291db53
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ const MailboxField = ( {
</FormLabel>
{ field.error && (
<FormInputValidation
// NTS: Passing markup as a 'text' prop feels odd.
text={ field.error.map( ( error, index ) => (
<div key={ index }>{ error }</div>
) ) }
Expand Down
1 change: 0 additions & 1 deletion client/my-sites/email/form/mailboxes/validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ class PasswordValidator extends BaseValidator< string > {
try {
const apiResponse = await this.mockApiCall( value );
if ( ! apiResponse.success && apiResponse.errors ) {
//NTS: This is sufficient if we want to directly pass errors from the API response. If we want to perform any translations, we'll need a getApiValidationErrors method.
apiResponse.errors.forEach( ( error ) => this.addError( field, error ) );
}
} catch ( error ) {
Expand Down

0 comments on commit 291db53

Please sign in to comment.