diff --git a/tomatic/ui/src/pages/CallinfoPage/PartnerInfo.js b/tomatic/ui/src/pages/CallinfoPage/PartnerInfo.js
index 8580ebd7..772b9ec2 100644
--- a/tomatic/ui/src/pages/CallinfoPage/PartnerInfo.js
+++ b/tomatic/ui/src/pages/CallinfoPage/PartnerInfo.js
@@ -12,6 +12,11 @@ function nameFromFullName(name) {
return parts[1]
}
+function zeropad(value, num) {
+ if (!value) return value
+ return(value+"").padStart(num, '0')
+}
+
function IconLabel({icon, label}) {
return
}
@@ -74,7 +79,7 @@ function PartnerContent() {
{' '}
{markedErrorIfMissing(partner.city, 'Sense municipi')}
{' ('}
- {markedErrorIfMissing(partner.postalcode, 'Sense codi postal')}
+ {markedErrorIfMissing(zeropad(partner.postalcode, 5), 'Sense codi postal')}
{') '}
{markedErrorIfMissing(partner.state, 'Sense provĂncia')}