Skip to content

Commit

Permalink
Validation internal transaction fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isKONSTANTIN committed Jul 26, 2024
1 parent 1f6ca3b commit 62325c8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions components/modal/transaction/create/internal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ const toDelta = ref();
const description = ref("");
const highlightErrors = ref(false);
const allValid = computed(() =>
fromAccount.value !== undefined && toAccount.value !== undefined && fromDelta.value !== undefined &&
toDelta.value !== undefined && fromDelta.value !== 0 && toDelta.value !== 0 &&
tag.value !== undefined && date.value
)
const allValid = computed(() => {
const basicValid = fromAccount.value !== undefined && tag.value !== undefined && date.value && fromDelta.value !== 0;
const separateValid = toAccount.value !== undefined && toDelta.value !== undefined;
return basicValid && (!separateAmounts.value || separateValid)
});
const fromCurrency = computed(() => {
if (fromAccount.value === undefined)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "finwave",
"version": "0.14.0",
"version": "0.14.1",
"private": true,
"scripts": {
"build": "nuxt build",
Expand Down

0 comments on commit 62325c8

Please sign in to comment.