diff --git a/src/lib/utils.js b/src/lib/utils.js index 787e89f6..77a51024 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -754,7 +754,7 @@ function parseDeviceInfo(ua) { return result; } -function transactionTypeToCategroyType(transactionType) { +function transactionTypeToCategoryType(transactionType) { if (transactionType === transactionConstants.allTransactionTypes.Income) { return categoryConstants.allCategoryTypes.Income; } else if (transactionType === transactionConstants.allTransactionTypes.Expense) { @@ -766,7 +766,7 @@ function transactionTypeToCategroyType(transactionType) { } } -function categroyTypeToTransactionType(categoryType) { +function categoryTypeToTransactionType(categoryType) { if (categoryType === categoryConstants.allCategoryTypes.Income) { return transactionConstants.allTransactionTypes.Income; } else if (categoryType === categoryConstants.allCategoryTypes.Expense) { @@ -1067,8 +1067,8 @@ export default { generateRandomString, parseUserAgent, parseDeviceInfo, - transactionTypeToCategroyType, - categroyTypeToTransactionType, + transactionTypeToCategoryType, + categoryTypeToTransactionType, allVisibleTransactionCategories, getCategoryInfo, getCategorizedAccounts, diff --git a/src/views/mobile/transactions/EditPage.vue b/src/views/mobile/transactions/EditPage.vue index 99454ce3..6fbb955d 100644 --- a/src/views/mobile/transactions/EditPage.vue +++ b/src/views/mobile/transactions/EditPage.vue @@ -657,7 +657,7 @@ export default { if ((!query.type || query.type === '0') && query.categoryId && query.categoryId !== '0' && self.allCategoriesMap[query.categoryId]) { const category = self.allCategoriesMap[query.categoryId]; - const type = self.$utilities.categroyTypeToTransactionType(category.type); + const type = self.$utilities.categoryTypeToTransactionType(category.type); if (self.$utilities.isNumber(type)) { self.transaction.type = type; diff --git a/src/views/mobile/transactions/ListPage.vue b/src/views/mobile/transactions/ListPage.vue index 9a61e663..e6583405 100644 --- a/src/views/mobile/transactions/ListPage.vue +++ b/src/views/mobile/transactions/ListPage.vue @@ -318,9 +318,9 @@ class="no-margin-vertical" :key="categoryType" v-for="(categories, categoryType) in allPrimaryCategories" - v-show="!query.type || $utilities.categroyTypeToTransactionType(parseInt(categoryType)) === query.type" + v-show="!query.type || $utilities.categoryTypeToTransactionType(parseInt(categoryType)) === query.type" > - +