Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
fix: ASEMBLEO-27: return empty short description if description empty
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio committed Mar 18, 2023
1 parent d45b95b commit 72b4c53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def voted?(token)
end

def short_description
return '' if description.blank?

description.split("\n").first.strip
end

Expand Down

0 comments on commit 72b4c53

Please sign in to comment.