Skip to content

Commit 8865ce5

Browse files
committed
Removed extra check
1 parent 41e2928 commit 8865ce5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

app/controllers/donation_sites_controller.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ def create
3535

3636
def new
3737
@donation_site = current_organization.donation_sites.new
38-
if request.xhr?
39-
respond_to do |format|
40-
format.js { render template: "donation_sites/new_modal" }
41-
end
38+
respond_to do |format|
39+
format.html
40+
format.js { render template: "donation_sites/new_modal" }
4241
end
4342
end
4443

0 commit comments

Comments
 (0)