mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed promises and its race conditions
This commit is contained in:
@ -47,7 +47,7 @@ App.Presenters.RegistrationPresenter = function(
|
||||
return;
|
||||
}
|
||||
|
||||
api.post('/users', formData)
|
||||
promise.wait(api.post('/users', formData))
|
||||
.then(function(response) {
|
||||
registrationSuccess(response);
|
||||
}).fail(function(response) {
|
||||
|
Reference in New Issue
Block a user