diff --git a/static/app/views/settings/account/accountClose.tsx b/static/app/views/settings/account/accountClose.tsx index 0f1da19f69e8..46bec24c32ef 100644 --- a/static/app/views/settings/account/accountClose.tsx +++ b/static/app/views/settings/account/accountClose.tsx @@ -30,6 +30,11 @@ import {TextBlock} from 'sentry/views/settings/components/text/textBlock'; const BYE_URL = '/'; const leaveRedirect = () => (window.location.href = BYE_URL); +const HookedCustomConfirmAccountClose = OverrideOrDefault({ + overrideName: 'component:confirm-account-close', + defaultComponent: props => , +}); + function GoodbyeModalContent({Header, Body, Footer}: ModalRenderProps) { return (
@@ -134,11 +139,6 @@ function AccountClose() { removeAccount(Array.from(orgsToRemove)); }; - const HookedCustomConfirmAccountClose = OverrideOrDefault({ - overrideName: 'component:confirm-account-close', - defaultComponent: props => , - }); - if (isLoading) { return ; }