Skip to content

Commit 8d4189b

Browse files
committed
Display exactly 1M as 1M not 1000k
1 parent 6b10d3c commit 8d4189b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/home.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def price_display
6060
return 'UNKNOWN PRICE' if price.zero?
6161

6262
# Assume monthly rental amount if < 10k
63-
if price > 1_000_000
63+
if price >= 1_000_000
6464
#{price / 1_000_000.0}m"
6565
elsif price > 10_000
6666
#{price / 1000}k"

0 commit comments

Comments
 (0)