Skip to content

Commit

Permalink
Fix customer name
Browse files Browse the repository at this point in the history
  • Loading branch information
bingxie committed Oct 21, 2016
1 parent 5318aae commit a475586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/api/admin/customer_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def tag_list
end

def name
object.name || object.bill_address.andand.full_name
object.name.blank? ? object.bill_address.andand.full_name : object.name
end

def tags
Expand Down

0 comments on commit a475586

Please sign in to comment.