Skip to content

Commit

Permalink
Fix: withdraw charge negative value
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon committed Dec 6, 2023
1 parent 88623c2 commit 7fae9f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/admin/components/CombineInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
};
this.$emit('change', data);
}, 300 ),
}, 500 ),
},
computed:{
getCurrencySymbol() {
Expand Down
4 changes: 2 additions & 2 deletions src/admin/components/Fields/WithdrawCharges.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default {
methods: {
formatValue( data ) {
return {
fixed: Math.abs( data.fixed ),
percentage: Math.abs( data.percentage )
fixed: Math.abs( data.fixed ) ? Math.abs( data.fixed ) : 0,
percentage: Math.abs( data.percentage ) ? Math.abs( data.percentage ) : 0
};
},
isSwitchOptionChecked( optionKey ) {
Expand Down

0 comments on commit 7fae9f4

Please sign in to comment.