Skip to content

Commit c8cf3e3

Browse files
fix(tools): show default country string in invoice template
1 parent bec288e commit c8cf3e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tools/templates/invoice/default.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
#invoice.clientDetails.address \
158158
#invoice.clientDetails.postalCode #invoice.clientDetails.city \
159159
#if invoice.clientDetails.at("country", default: none) != none {
160-
lang.countries.at(invoice.clientDetails.at("country"), default: none)
160+
lang.countries.at(invoice.clientDetails.at("country"), default: invoice.clientDetails.country)
161161
}
162162
]
163163
],
@@ -167,7 +167,7 @@
167167
#invoice.companyDetails.address \
168168
#invoice.companyDetails.postalCode #invoice.companyDetails.city \
169169
#if (invoice.companyDetails.at("country", default: none) != none) {
170-
lang.countries.at(invoice.companyDetails.at("country"), default: none)
170+
lang.countries.at(invoice.companyDetails.at("country"), default: invoice.companyDetails.country)
171171
}
172172
#v(1em)
173173
#invoice.companyDetails.telephoneNumber \

0 commit comments

Comments
 (0)