From edcc19e5a49f321e2e33e1953f753c26d3162adb Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 22 Mar 2026 02:38:12 -0400 Subject: [PATCH] Add command ID to dropper nickname request for idempotency --- web/client/src/store/inventoryStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/src/store/inventoryStore.js b/web/client/src/store/inventoryStore.js index 5b32a9d..b877434 100644 --- a/web/client/src/store/inventoryStore.js +++ b/web/client/src/store/inventoryStore.js @@ -309,7 +309,7 @@ export const useInventoryStore = create((set, get) => ({ const response = await fetch(`${API_URL}/dropper-nicknames`, { method: 'POST', headers: authHeaders(), - body: JSON.stringify({ dropperName, nickname }), + body: JSON.stringify({ dropperName, nickname, commandId: newCommandId() }), }); const result = await response.json(); if (result.nicknames) {