diff --git a/src/components/UserProfileSettings/AddTelegram.tsx b/src/components/UserProfileSettings/AddTelegram.tsx index 0a377b7efe..9bee8d59fc 100644 --- a/src/components/UserProfileSettings/AddTelegram.tsx +++ b/src/components/UserProfileSettings/AddTelegram.tsx @@ -30,7 +30,7 @@ const AddTelegram: FC = ({ modalControl, refetchSocialHandleStatus, // setErrorMessage, - // setSuccessMessage, + setSuccessMessage, }) => { const { isOpen, onClose } = modalControl; const { account, wallet } = useAccount(); @@ -96,6 +96,7 @@ const AddTelegram: FC = ({ size="small" isOpen={isOpen} onClose={() => { + setSuccessMessage('') refetchSocialHandleStatus(); onClose(); }} @@ -105,12 +106,12 @@ const AddTelegram: FC = ({ acceptButtonProps={ step === Steps.EnterTelegram ? { - children: 'Next', - loading: isSendingVerification || isLoading, - onClick: () => { - telegramFormik?.handleSubmit(); - }, - } + children: 'Next', + loading: isSendingVerification || isLoading, + onClick: () => { + telegramFormik?.handleSubmit(); + }, + } : null } cancelButtonProps={null}