Skip to content

Commit 86e6e6e

Browse files
committed
update match card to show total cost per week
1 parent d7b6e9f commit 86e6e6e

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

0 commit comments

Comments
 (0)