Skip to content

Commit

Permalink
fix remove type
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Jan 26, 2024
1 parent ddbe75a commit 8cf2f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReimbursementAccount/ValidationStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const defaultProps = {
* @param {RegExp} amountRegex
* @returns {String}
*/
const filterInput = (amount, amountRegex?: RegExp) => {
const filterInput = (amount, amountRegex) => {
let value = amount ? amount.toString().trim() : '';
value = value.replace(/^0+|0+$/g, '');
if (value === '' || _.isNaN(Number(value)) || !Math.abs(Str.fromUSDToNumber(value)) || (amountRegex && !amountRegex.test(value))) {
Expand Down

0 comments on commit 8cf2f20

Please sign in to comment.