Fix success message on failure

This commit is contained in:
grandeljay 2022-06-13 08:50:35 +02:00
parent 065ccf5cb7
commit 07e38ced91
2 changed files with 14 additions and 2 deletions

View file

@ -587,6 +587,10 @@ $(function () {
.then(handleFetchError)
.then(handleFetchResponse)
.then(function(response) {
if (true !== response.success) {
return;
}
$('body').toast({ message: text.toast_wish_update });
wishlistsRefresh();
@ -614,6 +618,10 @@ $(function () {
.then(handleFetchError)
.then(handleFetchResponse)
.then(function(response) {
if (true !== response.success) {
return;
}
$('body').toast({ message: text.toast_wish_update });
wishlistsRefresh();