Skip to content

Commit

Permalink
Fix MemberDrop#annual_fee, show in currency
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudgg committed Dec 13, 2024
1 parent 8414e29 commit f568001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/liquid/member_drop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def balance
end

def annual_fee
@member.annual_fee
cur(@member.annual_fee.to_f)
end

def page_url
Expand Down
6 changes: 3 additions & 3 deletions spec/models/liquid/data_preview_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"member" => {
"name" => "John Doe",
"balance" => "CHF 0.00",
"annual_fee" => 30,
"annual_fee" => "CHF 30.00",
"billing_email" => false,
"page_url" => "https://membres.acme.test",
"billing_url" => "https://membres.acme.test/billing",
Expand Down Expand Up @@ -106,7 +106,7 @@
"member" => {
"name" => "John Doe",
"balance" => "CHF 0.00",
"annual_fee" => 30,
"annual_fee" => "CHF 30.00",
"billing_email" => false,
"page_url" => "https://membres.acme.test",
"billing_url" => "https://membres.acme.test/billing",
Expand Down Expand Up @@ -168,7 +168,7 @@
"member" => {
"name" => "John Doe",
"balance" => "CHF 0.00",
"annual_fee" => 30,
"annual_fee" => "CHF 30.00",
"billing_email" => false,
"page_url" => "https://membres.acme.test",
"billing_url" => "https://membres.acme.test/billing",
Expand Down

0 comments on commit f568001

Please sign in to comment.