fix wallet bug

This commit is contained in:
omair saleh
2022-03-02 11:50:20 +08:00
parent 9fa522f105
commit 515facb53f
@@ -108,7 +108,7 @@
amount: '0.00',
transaction_type: 0,
reference: ''
}
},
}
},
created(){
@@ -119,7 +119,7 @@
parameters: {
amount: {
required,
minValue: 10.000,
minValue: this.minValue(),
},
reference: {
required: requiredIf(function () { return this.parameters.transaction_type !== 0 })
@@ -127,6 +127,12 @@
}
}
},
computed: {
minValue()
{
return this.transaction_type === 0 ? 10.0000 : 0;
}
},
methods: {
successHandler(response){
if (this.parameters.transaction_type === 0) {