Skip to content

Commit 774e56a

Browse files
committed
update match card to show total cost per week
1 parent ce9c20c commit 774e56a

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
@@ -1353,7 +1353,10 @@ defmodule AlgoraWeb.Org.DashboardLive do
13531353
class="flex flex-wrap items-center gap-x-3 gap-y-1 text-sm text-muted-foreground sm:text-sm"
13541354
>
13551355
<span class="font-semibold font-display text-base sm:text-lg text-emerald-400">
1356-
{Money.to_string!(@match[:hourly_rate])}/hr
1356+
{@match[:hourly_rate]
1357+
|> Money.mult!(@match.user.hours_per_week || 30)
1358+
|> Money.mult!(Decimal.new("1.13"))
1359+
|> Money.to_string!()}/wk
13571360
</span>
13581361
</div>
13591362
</div>

0 commit comments

Comments
 (0)