chet novoe
This commit is contained in:
@@ -27,11 +27,11 @@ export const getBudgetInfos = async () => {
|
||||
export const getBudgetTransactions = async (budgetId, transactionType, categoryType) => {
|
||||
|
||||
let url = `/budgets/${budgetId}/transactions`
|
||||
if (transactionType) {
|
||||
url += '/' + transactionType
|
||||
if (transactionType && !categoryType) {
|
||||
url += '/?type=' + transactionType
|
||||
}
|
||||
if (transactionType && categoryType) {
|
||||
url += '/'+categoryType
|
||||
url += '/'+transactionType+'/'+categoryType
|
||||
}
|
||||
// if (!categoryType) {
|
||||
// throw new Error('No CategoryType');
|
||||
|
||||
Reference in New Issue
Block a user