mirror of
https://github.com/aclindsa/ofxgo.git
synced 2026-02-21 20:18:33 -05:00
cmd/ofx: check for nil Currency fields in transactions
This commit is contained in:
@@ -77,7 +77,7 @@ func bankTransactions() {
|
||||
|
||||
func printTransaction(defCurrency ofxgo.CurrSymbol, tran *ofxgo.Transaction) {
|
||||
currency := defCurrency
|
||||
if ok, _ := tran.Currency.Valid(); ok {
|
||||
if tran.Currency != nil {
|
||||
currency = tran.Currency.CurSym
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user