Skip to content

Commit

Permalink
update icon and fix credo
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikStreek committed Nov 12, 2024
1 parent 155f9a2 commit a4c3d75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mindwendel/ideas.ex
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ defmodule Mindwendel.Ideas do
idea = Repo.get!(Idea, idea_id)

new_comments_count =
if(idea.comments_count - 1 >= 0) do
if idea.comments_count - 1 >= 0 do
idea.comments_count - 1
else
0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<div class="float-end ms-2">
<span>
<%= idea.comments_count %>
<i class="bi-person-lines-fill"></i>
<i class="bi-chat"></i>
</span>
<span class="me-1"><%= length(idea.likes) %></span>
<%= unless Mindwendel.Likes.exists_like_for_idea?(idea.id, @current_user.id) do %>
Expand Down

0 comments on commit a4c3d75

Please sign in to comment.