Skip to content

Commit

Permalink
fix: stop event propgation (#12008)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask authored Dec 20, 2024
1 parent 6083caa commit 0f68974
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,9 +441,10 @@ export function CreateERC20RedPacket() {
<button
type="button"
className={classes.deleteButton}
onClick={() => {
onClick={(event) => {
event.stopPropagation()
setCustomThemes((origins) => origins.filter((x) => x !== theme))
if (theme.tid === selectedTheme?.tid) setTheme(undefined)
if (theme === selectedTheme) setTheme(undefined)
}}>
<Icons.Delete size={16} />
</button>
Expand Down

0 comments on commit 0f68974

Please sign in to comment.