diff --git a/app/models/import.rb b/app/models/import.rb index 895b142b1c6..30076e57127 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -112,7 +112,7 @@ def generate_transactions csv.table.each do |row| category = account.family.transaction_categories.find_or_initialize_by(name: row["category"]) txn = account.transactions.build \ - name: row["name"] || "Imported transaction", + name: row["name"].presence || "Imported transaction", date: Date.iso8601(row["date"]), category: category, amount: BigDecimal(row["amount"]) * -1, # User inputs amounts with opposite signage of our internal representation