mirror of
https://github.com/we-promise/sure.git
synced 2026-05-30 07:49:01 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user