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 17df980 commit a143e9bCopy full SHA for a143e9b
packages/js/product-editor/src/hooks/use-currency-input-props.ts
@@ -80,8 +80,8 @@ export const useCurrencyInputProps = ( {
80
onKeyUp( event );
81
}
82
},
83
- onChange( value: string ) {
84
- const sanitizeValue = sanitizePrice( value || '0' );
+ onChange( newValue: string ) {
+ const sanitizeValue = sanitizePrice( newValue || '0' );
85
if ( onChange ) {
86
onChange( sanitizeValue );
87
0 commit comments