Skip to content

Commit ee74140

Browse files
committed
Remove log and follow convention
1 parent cb79abd commit ee74140

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

assets/js/helpers/monei-card-input-hooks.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export const useMoneiCardInput = ( config ) => {
7171
* Initialize MONEI Card Input
7272
*/
7373
const initializeCardInput = useCallback( () => {
74-
console.log('initializing MONEI Card Input');
7574
if ( typeof monei === 'undefined' || ! monei.CardInput ) {
7675
setError( 'MONEI SDK is not available' );
7776
return;
@@ -86,7 +85,7 @@ export const useMoneiCardInput = ( config ) => {
8685
input: {
8786
color: 'hsla(0,0%,7%,.8)',
8887
fontSize: '16px',
89-
'box-sizing': 'border-box',
88+
boxSizing: 'border-box',
9089
'::placeholder': {
9190
color: 'hsla(0,0%,7%,.8)',
9291
},
@@ -135,7 +134,9 @@ export const useMoneiCardInput = ( config ) => {
135134
onEnter() {
136135
// Trigger token creation on Enter key
137136
if ( cardInputRef.current ) {
138-
createToken();
137+
createToken().catch(err => {
138+
console.error('Token creation failed on Enter:', err);
139+
});
139140
}
140141
},
141142
} );

0 commit comments

Comments
 (0)