Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
fix error: Cannot read properties of undefined (reading 'termsAndCond…
Browse files Browse the repository at this point in the history
…itionsUrl') #96
  • Loading branch information
syjer committed Aug 6, 2022
1 parent 067052d commit 761279b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/event-footer-links/footer-links.component.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div [ngClass]="marginClass" class="d-md-flex text-center text-md-left justify-content-md-center">
<div *ngIf="linksContainer.termsAndConditionsUrl">
<div *ngIf="linksContainer?.termsAndConditionsUrl">
<a [href]="linksContainer.termsAndConditionsUrl" target="_blank" rel="noopener"
[attr.aria-label]="('reservation-page.tc.link.text' | translate) + ('link.new-tab' | translate)">{{'reservation-page.tc.link.text'|translate}}</a></div>
<div class="ml-3 mr-3 d-none d-md-block" *ngIf="linksContainer.termsAndConditionsUrl && linksContainer.privacyPolicyUrl">&ndash;</div>
<div *ngIf="linksContainer.privacyPolicyUrl">
<div class="ml-3 mr-3 d-none d-md-block" *ngIf="linksContainer?.termsAndConditionsUrl && linksContainer?.privacyPolicyUrl">&ndash;</div>
<div *ngIf="linksContainer?.privacyPolicyUrl">
<a [href]="linksContainer.privacyPolicyUrl" target="_blank" rel="noopener"
[attr.aria-label]="('reservation-page.privacy.link.text'|translate) + ('link.new-tab' | translate)">{{'reservation-page.privacy.link.text'|translate}}</a></div>
</div>
2 changes: 1 addition & 1 deletion src/app/event-footer-links/footer-links.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export class FooterLinksComponent {
marginClass = 'mb-5';

@Input()
linksContainer: TermsPrivacyLinksContainer;
linksContainer?: TermsPrivacyLinksContainer;
}

0 comments on commit 761279b

Please sign in to comment.