Skip to content

Commit e605808

Browse files
committed
perf: remove redundant sorting
1 parent fe7b2dd commit e605808

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/algora_web/live/org/job_live.ex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ defmodule AlgoraWeb.Org.JobLive do
917917
|> assign(:developers, developers)
918918
|> assign(:applicants, sort_by_contributions(socket.assigns.job, applicants, contributions_map))
919919
|> assign(:imports, sort_by_contributions(socket.assigns.job, imports, contributions_map))
920-
|> assign(:stargazers, sort_by_contributions(socket.assigns.job, stargazers, contributions_map))
920+
|> assign(:stargazers, stargazers)
921921
|> assign(:stargazers_count, stargazers_count)
922922
|> assign(:matches, matches)
923923
|> assign(:truncated_matches, truncated_matches)
@@ -1170,11 +1170,11 @@ defmodule AlgoraWeb.Org.JobLive do
11701170
<span :if={@user.country}>
11711171
{Algora.Misc.CountryEmojis.get(@user.country)}
11721172
</span>
1173-
<%= if @current_user && @current_user.is_admin && @user.provider_meta["hireable"] do %>
1173+
<%!-- <%= if @current_user && @current_user.is_admin && @user.provider_meta["hireable"] do %>
11741174
<.badge variant="success">
11751175
Hireable
11761176
</.badge>
1177-
<% end %>
1177+
<% end %> --%>
11781178
</.link>
11791179
</div>
11801180
<div
@@ -1190,17 +1190,17 @@ defmodule AlgoraWeb.Org.JobLive do
11901190
<.icon name="github" class="shrink-0 h-4 w-4" />
11911191
<span class="line-clamp-1">{@user.provider_login}</span>
11921192
</.link>
1193-
<.link
1194-
:if={@user.provider_meta["twitter_handle"]}
1195-
href={"https://x.com/#{@user.provider_meta["twitter_handle"]}"}
1193+
<%!-- <.link
1194+
:if={@user.provider_meta["twitter_username"]}
1195+
href={"https://x.com/#{@user.provider_meta["twitter_username"]}"}
11961196
target="_blank"
11971197
class="flex items-center gap-1 hover:underline"
11981198
>
11991199
<.icon name="tabler-brand-x" class="shrink-0 h-4 w-4" />
12001200
<span class="line-clamp-1">
1201-
{@user.provider_meta["twitter_handle"]}
1201+
{@user.provider_meta["twitter_username"]}
12021202
</span>
1203-
</.link>
1203+
</.link> --%>
12041204
<div :if={@user.provider_meta["location"]} class="flex items-center gap-1">
12051205
<.icon name="tabler-map-pin" class="shrink-0 h-4 w-4" />
12061206
<span class="line-clamp-1">

0 commit comments

Comments
 (0)