From 5a582daa1a29e1eb90ab804ddaedc2d8b14cfed6 Mon Sep 17 00:00:00 2001
From: Sainan <63328889+Sainan@users.noreply.github.com>
Date: Thu, 9 Oct 2025 00:28:09 -0700
Subject: [PATCH] chore(webui): debounce guild tech actions (#2882)
Closes #2880
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2882
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
---
 static/webui/script.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/static/webui/script.js b/static/webui/script.js
index dc0d7f32..74a58c11 100644
--- a/static/webui/script.js
+++ b/static/webui/script.js
@@ -1771,7 +1771,7 @@ function updateInventory() {
                                     a.href = "#";
                                     a.onclick = function (event) {
                                         event.preventDefault();
-                                        fundGuildTechProject(item.ItemType);
+                                        debounce(fundGuildTechProject, item.ItemType);
                                     };
                                     a.title = loc("code_fund");
                                     a.innerHTML = ``;
@@ -1788,7 +1788,7 @@ function updateInventory() {
                                     a.href = "#";
                                     a.onclick = function (event) {
                                         event.preventDefault();
-                                        completeGuildTechProject(item.ItemType);
+                                        debounce(completeGuildTechProject, item.ItemType);
                                     };
                                     a.title = loc("code_complete");
                                     a.innerHTML = ``;
@@ -1801,7 +1801,7 @@ function updateInventory() {
                                     a.onclick = function (event) {
                                         event.preventDefault();
                                         reAddToItemList(itemMap, "TechProjects", item.ItemType);
-                                        removeGuildTechProject(item.ItemType);
+                                        debounce(removeGuildTechProject, item.ItemType);
                                     };
                                     a.title = loc("code_remove");
                                     a.innerHTML = ``;