From f3886c3ce862e35fa45927836123ee1de8c2f020 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sat, 28 Jan 2023 02:44:20 -0800 Subject: [PATCH] Set remove alert to close when removing an item --- components/CharacterUnit/index.tsx | 1 + components/SummonUnit/index.tsx | 1 + components/WeaponUnit/index.tsx | 1 + 3 files changed, 3 insertions(+) diff --git a/components/CharacterUnit/index.tsx b/components/CharacterUnit/index.tsx index d813b877..fe2f9919 100644 --- a/components/CharacterUnit/index.tsx +++ b/components/CharacterUnit/index.tsx @@ -164,6 +164,7 @@ const CharacterUnit = ({ function removeCharacter() { if (gridCharacter) sendCharacterToRemove(gridCharacter.id) + setAlertOpen(false) } // Methods: Image string generation diff --git a/components/SummonUnit/index.tsx b/components/SummonUnit/index.tsx index 9da0b566..b4dc03f0 100644 --- a/components/SummonUnit/index.tsx +++ b/components/SummonUnit/index.tsx @@ -113,6 +113,7 @@ const SummonUnit = ({ function removeSummon() { if (gridSummon) sendSummonToRemove(gridSummon.id) + setAlertOpen(false) } // Methods: Image string generation diff --git a/components/WeaponUnit/index.tsx b/components/WeaponUnit/index.tsx index 8149f6a6..6a151e73 100644 --- a/components/WeaponUnit/index.tsx +++ b/components/WeaponUnit/index.tsx @@ -131,6 +131,7 @@ const WeaponUnit = ({ function removeWeapon() { if (gridWeapon) sendWeaponToRemove(gridWeapon.id) + setAlertOpen(false) } // Methods: Data fetching and manipulation