diff --git a/template/transaction/transaction.templ b/template/transaction/transaction.templ index 94370ca..b784120 100644 --- a/template/transaction/transaction.templ +++ b/template/transaction/transaction.templ @@ -30,7 +30,7 @@ templ Transaction(items templ.Component, filter types.TransactionItemsFilter, ac if parent.ParentId == nil { for _, child := range treasureChests { - if *child.ParentId == parent.Id { + if child.ParentId != nil && *child.ParentId == parent.Id {