diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index aae0db9e..df708925 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -1056,10 +1056,8 @@ function RelatedActions({ info, instance, authenticated, standalone }) { {!!showTranslatedBio && ( { - if (e.target === e.currentTarget) { - setShowTranslatedBio(false); - } + onClose={() => { + setShowTranslatedBio(false); }} > { - if (e.target === e.currentTarget) { - setShowAddRemoveLists(false); - } + onClose={() => { + setShowAddRemoveLists(false); }} >