fix: remove logs
This commit is contained in:
parent
0069ba8402
commit
7c8318964f
2 changed files with 0 additions and 6 deletions
|
|
@ -254,8 +254,6 @@ const Wizard = ({ onClose, save, error, currency }) => {
|
||||||
)
|
)
|
||||||
return errors.threshold
|
return errors.threshold
|
||||||
|
|
||||||
console.log(errors)
|
|
||||||
|
|
||||||
if (isSuspend && hasRequirementError) return errors.requirement
|
if (isSuspend && hasRequirementError) return errors.requirement
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,6 @@ const typeSchema = Yup.object()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.test(({ threshold, triggerType }, context) => {
|
.test(({ threshold, triggerType }, context) => {
|
||||||
console.log(context)
|
|
||||||
const errorMessages = {
|
const errorMessages = {
|
||||||
txAmount: threshold => 'Amount must be greater than or equal to 0',
|
txAmount: threshold => 'Amount must be greater than or equal to 0',
|
||||||
txVolume: threshold => {
|
txVolume: threshold => {
|
||||||
|
|
@ -464,7 +463,6 @@ const requirementSchema = Yup.object()
|
||||||
}).required()
|
}).required()
|
||||||
})
|
})
|
||||||
.test(({ requirement }, context) => {
|
.test(({ requirement }, context) => {
|
||||||
console.log('requirement aaaaa', requirement)
|
|
||||||
const requirementValidator = requirement =>
|
const requirementValidator = requirement =>
|
||||||
requirement.requirement === 'suspend'
|
requirement.requirement === 'suspend'
|
||||||
? requirement.suspensionDays > 0
|
? requirement.suspensionDays > 0
|
||||||
|
|
@ -505,8 +503,6 @@ const Requirement = () => {
|
||||||
const titleClass = {
|
const titleClass = {
|
||||||
[classes.error]:
|
[classes.error]:
|
||||||
(!!errors.requirement && !isSuspend) || (isSuspend && hasRequirementError)
|
(!!errors.requirement && !isSuspend) || (isSuspend && hasRequirementError)
|
||||||
// !R.isEmpty(R.omit(['suspensionDays'], errors.requirement)) ||
|
|
||||||
// (isSuspend && hasRequirementError)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue