Fix currency usage. AGAIN!
Build and Deploy Web App / build-and-deploy (push) Successful in 18s Details

This commit is contained in:
andrewlalis 2025-08-29 20:45:16 -04:00
parent 3edf8ccebe
commit 34eb0d11fd
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@ const editing = computed(() => {
// General data used to populate form controls.
const allCurrencies: Ref<Currency[]> = ref([])
const availableCurrencies = computed(() => {
return allCurrencies.value.filter(c => allAccounts.value.some(a => a.currency === c.code))
return allCurrencies.value.filter(c => allAccounts.value.some(a => a.currency.code === c.code))
})
const availableVendors: Ref<TransactionVendor[]> = ref([])
const allAccounts: Ref<Account[]> = ref([])
const availableAccounts = computed(() => {
return allAccounts.value.filter(a => a.currency === currency.value?.code)
return allAccounts.value.filter(a => a.currency.code === currency.value?.code)
})
const allTags: Ref<string[]> = ref([])
const availableTags = computed(() => {