Skip to content

Commit

Permalink
make nilable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Aug 28, 2024
1 parent c3054e6 commit 659ec99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/avo/sidebar_profile_component.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class Avo::SidebarProfileComponent < Avo::BaseComponent
prop :user, _Any
prop :user, _Nilable(_Any)

def avatar
if @user.respond_to?(:avatar) && @user.avatar.present?
Expand Down

0 comments on commit 659ec99

Please sign in to comment.