fix new tr
This commit is contained in:
@@ -72,9 +72,12 @@ impl App {
|
||||
}
|
||||
|
||||
pub fn save_new_tr(&mut self) {
|
||||
self.next_tr_input();
|
||||
let tr = data_layer::upsert_transaction(&self.connection, self.new_transaction.clone());
|
||||
self.trx_table.add_tr(tr);
|
||||
self.new_transaction = Transaction::new_empty();
|
||||
self.current_input = String::new();
|
||||
self.selected_transaction_input = TransactionInput::Type;
|
||||
}
|
||||
|
||||
pub fn next_tr_input(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user