Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlittman committed Jan 17, 2025
1 parent e018f0a commit 6f62943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def show
private

def druids_for_works_for_current_user
current_user.works.where.not(druid: nil).pluck(:druid)
current_user.your_works.where.not(druid: nil).pluck(:druid)
end
end
4 changes: 2 additions & 2 deletions app/presenters/work_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def terms_of_use
end

def status_message
case work.review_state
case review_state
when 'pending_review'
'Pending review'
when 'rejected_review'
Expand All @@ -75,7 +75,7 @@ def status_message

private

delegate :collection, :created_at, :user, to: :work
delegate :collection, :created_at, :user, :review_state, to: :work

def license_presenter
@license_presenter ||= LicensePresenter.new(work_form:, collection:)
Expand Down

0 comments on commit 6f62943

Please sign in to comment.