mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-24 05:38:52 +00:00
Fix diplaying customer transactions when no transaction
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
module Admin
|
||||
class CustomerAccountTransactionController < Admin::ResourceController
|
||||
def index
|
||||
@available_credit = @collection.first.balance
|
||||
@available_credit = @collection.first&.balance || 0.00
|
||||
|
||||
respond_with do |format|
|
||||
format.turbo_stream {
|
||||
|
||||
Reference in New Issue
Block a user