From 54cee7f103030f4650e5301882dd37cb50bc5932 Mon Sep 17 00:00:00 2001 From: Jimmy Date: Thu, 11 Mar 2021 21:39:51 -0800 Subject: [PATCH] [style] Remove extraneous check --- app/controllers/payments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/payments_controller.rb b/app/controllers/payments_controller.rb index ab05aed3..ffbfec15 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -27,7 +27,7 @@ class PaymentsController < ApplicationController update_purchased_ticket_purchases has_registration_ticket = params[:has_registration_ticket] - if has_registration_ticket.present? && has_registration_ticket == 'true' + if has_registration_ticket == 'true' redirect_to new_conference_conference_registration_path(@conference.short_title), notice: 'Thanks! Your ticket is booked successfully. Please register for the conference.' else