1
0
Fork 0
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:
Luan Estradioto 2025-04-14 15:05:48 -03:00
parent 298e150f43
commit 7d79fbcceb
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -11,5 +11,5 @@ en:
format: |-
%{line1}
%{line2}
%{locality}, %{region} %{postal_code}
%{locality}%{region} %{postal_code}
%{country}