เเก้ object object

This commit is contained in:
setthawutttty 2023-08-17 17:15:55 +07:00
parent ed27f54433
commit a8ad8a2723

View file

@ -357,7 +357,7 @@ const updateDateRange = () => {
};
const addData = async () => {
const formData = new FormData();
formData.append("name", roundCoin.value);
formData.append("name", roundCoin.value.label);
formData.append("year", parseInt(yearly.value).toString());
formData.append("amount", datelast.value.toString());
if (dateStart.value !== null) {