                  alert(`Successfully updated currency for ${email} to ${amount} donuts`);
                    // Refresh the user list to show updated currency
                    await loadUsers();
                } else {
                    alert(`Error: ${data.message}`);
                }
            } catch (error) {
                alert('Failed to update currency: ' + error.message);
            }
        }

        async function loadUserSave() {
            const userSelectSave = document.getElem