Skip to content

Commit 5fa2efe

Browse files
committed
update match card to show total cost per week
1 parent 59d0fdc commit 5fa2efe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/algora_web/live/org/dashboard_live.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,10 @@ defmodule AlgoraWeb.Org.DashboardLive do
13461346
class="flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground sm:text-sm"
13471347
>
13481348
<span class="font-semibold font-display text-base sm:text-lg text-emerald-400">
1349-
{Money.to_string!(@match[:hourly_rate])}/hr
1349+
{@match[:hourly_rate]
1350+
|> Money.mult!(@match.user.hours_per_week || 30)
1351+
|> Money.mult!(Decimal.new("1.13"))
1352+
|> Money.to_string!()}/wk
13501353
</span>
13511354
</div>
13521355
</div>

0 commit comments

Comments
 (0)