Minor tweaks
This commit is contained in:
parent
c43dd4b15e
commit
7aba027896
2 changed files with 5 additions and 3 deletions
|
|
@ -82,8 +82,7 @@ class Handler extends ExceptionHandler
|
|||
}
|
||||
|
||||
if ($e instanceof TokenMismatchException) {
|
||||
// prevent loop since the page auto-submits
|
||||
if ($request->path() != 'get_started' && $request->path() != 'save_sidebar_state') {
|
||||
if (! in_array($request->path(), ['get_started', 'save_sidebar_state'])) {
|
||||
// https://gist.github.com/jrmadsen67/bd0f9ad0ef1ed6bb594e
|
||||
return redirect()
|
||||
->back()
|
||||
|
|
|
|||
|
|
@ -257,7 +257,10 @@
|
|||
data: data,
|
||||
success: function(response) {
|
||||
redirectToPayment();
|
||||
}
|
||||
},
|
||||
error: function(response) {
|
||||
// TODO
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue