     
                alert('Town saved successfully!');
            } catch (error) {
                alert('Error saving town: ' + error.message);
            }
        }

        async function updateUserCurrency() {
            const email = document.getElementById('userEmail').value;
            const amount = parseInt(document.getElementById('donutAmount').value);

            if (!email || !amount) {
                alert('Please fill in both email and amount fields');
                return;
       