Verified Commit c613b505 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

do not send a useless json respond back, as it is not used on the client side anyway

parent 1b4cd803
......@@ -82,7 +82,7 @@ class VolunteersController < ApplicationController
def update_waive_and_iban
authorize @volunteer
respond_to :json
render json: nil, status: :ok
def terminate
json.volunteer do
json.waive @volunteer.waive
json.iban @volunteer.iban
json.errors @volunteer.errors&.messages
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment