Skip to content

Commit f5a57eb

Browse files
committed
jsx-a11y/no-interactive-element-to-noninteractive-role & no-cond-assign fixed
1 parent 8b70414 commit f5a57eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

_inc/client/components/form/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ const luhnChk = ( function( arr ) {
7272

7373
while ( len ) {
7474
val = parseInt( ccNum.charAt( --len ), 10 );
75-
sum += ( bit ^= 1 ) ? arr[ val ] : val;
75+
bit ^= 1;
76+
sum += bit ? arr[ val ] : val;
7677
}
7778

7879
return sum && sum % 10 === 0;

_inc/client/components/search/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ class Search extends React.Component {
353353
id={ 'dops-search-component-' + this.state.instanceId }
354354
className={ inputClass }
355355
placeholder={ placeholder }
356-
role="search"
356+
role="searchbox"
357357
value={ searchValue }
358358
ref="searchInput"
359359
onKeyUp={ this.keyUp }

0 commit comments

Comments
 (0)