mirror of
https://github.com/bitwarden/browser.git
synced 2024-08-25 23:03:07 +02:00
null check
This commit is contained in:
parent
370952971a
commit
6f64c5cb5a
|
@ -27,6 +27,6 @@ export class OrganizationBillingResponse extends OrganizationResponse {
|
||||||
if (response.Charges != null) {
|
if (response.Charges != null) {
|
||||||
this.charges = response.Charges.map((c: any) => new BillingChargeResponse(c));
|
this.charges = response.Charges.map((c: any) => new BillingChargeResponse(c));
|
||||||
}
|
}
|
||||||
this.expiration = new Date(response.Expiration);
|
this.expiration = response.Expiration != null ? new Date(response.Expiration) : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user