Set remove alert to close when removing an item

This commit is contained in:
Justin Edmund 2023-01-28 02:44:20 -08:00
parent f795c6fad7
commit f3886c3ce8
3 changed files with 3 additions and 0 deletions

View file

@ -164,6 +164,7 @@ const CharacterUnit = ({
function removeCharacter() {
if (gridCharacter) sendCharacterToRemove(gridCharacter.id)
setAlertOpen(false)
}
// Methods: Image string generation

View file

@ -113,6 +113,7 @@ const SummonUnit = ({
function removeSummon() {
if (gridSummon) sendSummonToRemove(gridSummon.id)
setAlertOpen(false)
}
// Methods: Image string generation

View file

@ -131,6 +131,7 @@ const WeaponUnit = ({
function removeWeapon() {
if (gridWeapon) sendWeaponToRemove(gridWeapon.id)
setAlertOpen(false)
}
// Methods: Data fetching and manipulation