diff --git a/ruby/lib/jam_ruby/models/music_session.rb b/ruby/lib/jam_ruby/models/music_session.rb index d55ebf1ad..79f85a392 100644 --- a/ruby/lib/jam_ruby/models/music_session.rb +++ b/ruby/lib/jam_ruby/models/music_session.rb @@ -948,6 +948,9 @@ SQL if scheduled_duration.class == String duration = scheduled_duration.to_i.seconds end + if duration == 0 + duration = 30 * 60 + end duration end @@ -996,7 +999,7 @@ SQL "#{start_time.strftime("%A, %B %e")}, #{start_time.strftime("%l:%M").strip}-#{end_time.strftime("%l:%M %p").strip} #{timezone_display}" end else - "#{start_time.strftime("%A, %B %e")} - #{start_time.strftime("%l:%M%P").strip}" + "#{start_time.strftime("%A, %B %e")} - #{end_time.strftime("%l:%M%P").strip}" end else diff --git a/web/app/assets/javascripts/react-components/LessonPayment.js.jsx.coffee b/web/app/assets/javascripts/react-components/LessonPayment.js.jsx.coffee index f687a330d..f8ba02b5d 100644 --- a/web/app/assets/javascripts/react-components/LessonPayment.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/LessonPayment.js.jsx.coffee @@ -502,7 +502,7 @@ UserStore = context.UserStore else if this.state.user.lesson_package_type_id == 'test-drive-2' explanation =`You are purchasing the TestDrive package of JamClass by JamKazam. This purchase entitles you to take 2 private online music lessons - 1 each from 2 different instructors in the JamClass instructor community. The price of this TestDrive package is $29.99.` else - alert("You do not have a test drive package selected") + alert("You do not have a test drive package selected: " + this.state.user.lesson_package_type_id ) bookingDetail = `
{explanation}