💬 🐛 Fix regression add on move, improved texts

This commit is contained in:
Timur Ercan
2023-02-28 18:56:30 +01:00
parent 2f1d262b1b
commit fc93f80a8b
3 changed files with 13 additions and 4 deletions

View File

@ -19,9 +19,9 @@ export const createOrUpdateField = async (
return res.json();
}),
{
loading: "Adding...",
success: "Added.",
error: "Could not add :/",
loading: field?.id !== -1 ? "Saving..." : "Adding...",
success: field?.id !== -1 ? "Saved." : "Added.",
error: field?.id !== -1 ? "Could not save :/" : "Could not add :/",
},
{
id: "saving field",