Skip to content

Commit 6264f15

Browse files
Maxime BajeuxMaximeBajeux
authored andcommitted
fix(billing): resolve unicode issue
ref: #INC0174222, #MANAGER-20494 Signed-off-by: Maxime Bajeux <[email protected]>
1 parent e35766a commit 6264f15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/manager/modules/models/BillingService/BillingService.class.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export default class BillingService {
1616
constructor(service) {
1717
Object.assign(this, service);
1818

19-
this.serviceIdUnicode = punycode.toUnicode(service.serviceId);
19+
this.serviceIdUnicode =
20+
typeof service.serviceId === 'string'
21+
? punycode.toUnicode(service.serviceId)
22+
: service.serviceId;
2023
this.id = service.id || service.serviceId;
2124
this.expirationDate = moment(this.expiration);
2225
this.creationDate = moment(this.creation);

0 commit comments

Comments
 (0)