mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 15:35:22 +02:00
Fix: No comma when locality is empty
This commit is contained in:
parent
298e150f43
commit
7d79fbcceb
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ class Address < ApplicationRecord
|
|||
line1: line1,
|
||||
line2: line2,
|
||||
county: county,
|
||||
locality: locality,
|
||||
locality: locality.present? ? "#{locality}, " : "",
|
||||
region: region,
|
||||
country: country,
|
||||
postal_code: postal_code
|
||||
|
|
|
@ -11,5 +11,5 @@ en:
|
|||
format: |-
|
||||
%{line1}
|
||||
%{line2}
|
||||
%{locality}, %{region} %{postal_code}
|
||||
%{locality}%{region} %{postal_code}
|
||||
%{country}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue