fix: remove logs

This commit is contained in:
Sérgio Salgado 2021-03-30 00:01:09 +01:00 committed by Josh Harvey
parent 0069ba8402
commit 7c8318964f
2 changed files with 0 additions and 6 deletions

View file

@ -254,8 +254,6 @@ const Wizard = ({ onClose, save, error, currency }) => {
)
return errors.threshold
console.log(errors)
if (isSuspend && hasRequirementError) return errors.requirement
}

View file

@ -259,7 +259,6 @@ const typeSchema = Yup.object()
})
})
.test(({ threshold, triggerType }, context) => {
console.log(context)
const errorMessages = {
txAmount: threshold => 'Amount must be greater than or equal to 0',
txVolume: threshold => {
@ -464,7 +463,6 @@ const requirementSchema = Yup.object()
}).required()
})
.test(({ requirement }, context) => {
console.log('requirement aaaaa', requirement)
const requirementValidator = requirement =>
requirement.requirement === 'suspend'
? requirement.suspensionDays > 0
@ -505,8 +503,6 @@ const Requirement = () => {
const titleClass = {
[classes.error]:
(!!errors.requirement && !isSuspend) || (isSuspend && hasRequirementError)
// !R.isEmpty(R.omit(['suspensionDays'], errors.requirement)) ||
// (isSuspend && hasRequirementError)
}
return (