Skip to content

Commit

Permalink
Null check
Browse files Browse the repository at this point in the history
  • Loading branch information
alextselegidis committed Jan 26, 2024
1 parent 5e2d99a commit b58cbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/pages/booking.js
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ App.Pages.Booking = (function () {

// Render the service description

if (service.description.length) {
if (service.description?.length) {
const escapedDescription = App.Utils.String.escapeHtml(service.description);

const multiLineDescription = escapedDescription.replaceAll('\n', '<br/>');
Expand Down

0 comments on commit b58cbc9

Please sign in to comment.