We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b70414 commit f5a57ebCopy full SHA for f5a57eb
_inc/client/components/form/index.jsx
@@ -72,7 +72,8 @@ const luhnChk = ( function( arr ) {
72
73
while ( len ) {
74
val = parseInt( ccNum.charAt( --len ), 10 );
75
- sum += ( bit ^= 1 ) ? arr[ val ] : val;
+ bit ^= 1;
76
+ sum += bit ? arr[ val ] : val;
77
}
78
79
return sum && sum % 10 === 0;
_inc/client/components/search/index.jsx
@@ -353,7 +353,7 @@ class Search extends React.Component {
353
id={ 'dops-search-component-' + this.state.instanceId }
354
className={ inputClass }
355
placeholder={ placeholder }
356
- role="search"
+ role="searchbox"
357
value={ searchValue }
358
ref="searchInput"
359
onKeyUp={ this.keyUp }
0 commit comments