fix(trades): prevent MissingTemplate for Turbo Stream requests on update/create failure (#1893)

* fix(trades): prevent MissingTemplate for Turbo Stream requests on update/create failure

* Linter noise

---------

Co-authored-by: sentry[bot] <39604003+sentry[bot]@users.noreply.github.com>
Co-authored-by: Juan José Mata <jjmata@jjmata.com>
This commit is contained in:
sentry[bot]
2026-05-24 15:51:18 +02:00
committed by GitHub
parent 2ce875f57f
commit 06518b49a1

View File

@@ -35,7 +35,7 @@ class TradesController < ApplicationController
format.turbo_stream { stream_redirect_back_or_to account_path(@account) }
end
else
render :new, status: :unprocessable_entity
render :new, status: :unprocessable_entity, formats: [ :html ]
end
end
@@ -69,7 +69,7 @@ class TradesController < ApplicationController
end
end
else
render :show, status: :unprocessable_entity
render :show, status: :unprocessable_entity, formats: [ :html ]
end
end