]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/utils.ts
Fixing up popup code.
[lemmy-ui.git] / src / shared / utils.ts
index d0b9b4bf6de888d1802a9271aef856c0d6f870ad..b65c425235171c0f2fb73ea340672823b8d009bd 100644 (file)
@@ -553,16 +553,14 @@ export function pictrsDeleteToast(
       duration: 10000,
       onClick: () => {
         if (toast) {
-          fetch(deleteUrl, {})
-          .then( res => {
-            console.log(res)
+          fetch(deleteUrl).then(res => {
             toast.hideToast();
-            if (res.ok === true){
+            if (res.ok === true) {
               alert(deletePictureText);
-            } else{
+            } else {
               alert(failedDeletePictureText);
             }
-          })
+          });
         }
       },
       close: true,