Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
kspearrin committed Aug 1, 2018
1 parent 3709529 commit 6f64c5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/response/organizationBillingResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ export class OrganizationBillingResponse extends OrganizationResponse {
if (response.Charges != null) {
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;
}
}

0 comments on commit 6f64c5c

Please sign in to comment.