Implement custom date input
This commit is contained in:
@ -14,7 +14,7 @@ interface State {
|
||||
|
||||
export interface Transaction {
|
||||
ID: string,
|
||||
Date: string,
|
||||
Date: Date,
|
||||
TransferAccount: string,
|
||||
CategoryGroup: string,
|
||||
Category: string,
|
||||
@ -127,6 +127,7 @@ export const useAccountStore = defineStore("budget/account", {
|
||||
const response = await result.json();
|
||||
account.Transactions = [];
|
||||
for (const transaction of response.Transactions) {
|
||||
transaction.Date = new Date(transaction.Date);
|
||||
this.Transactions.set(transaction.ID, transaction);
|
||||
account.Transactions.push(transaction.ID);
|
||||
}
|
||||
|
Reference in New Issue
Block a user