Skip to content

Commit

Permalink
Fixed the display of alert message for email and telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-01k committed Dec 21, 2024
1 parent 776b079 commit 2295fb4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/components/UserProfileSettings/AddTelegram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AddTelegram: FC<AddTelegramProps> = ({
modalControl,
refetchSocialHandleStatus,
// setErrorMessage,
// setSuccessMessage,
setSuccessMessage,
}) => {
const { isOpen, onClose } = modalControl;
const { account, wallet } = useAccount();
Expand Down Expand Up @@ -96,6 +96,7 @@ const AddTelegram: FC<AddTelegramProps> = ({
size="small"
isOpen={isOpen}
onClose={() => {
setSuccessMessage('')
refetchSocialHandleStatus();
onClose();
}}
Expand All @@ -105,12 +106,12 @@ const AddTelegram: FC<AddTelegramProps> = ({
acceptButtonProps={
step === Steps.EnterTelegram
? {
children: 'Next',
loading: isSendingVerification || isLoading,
onClick: () => {
telegramFormik?.handleSubmit();
},
}
children: 'Next',
loading: isSendingVerification || isLoading,
onClick: () => {
telegramFormik?.handleSubmit();
},
}
: null
}
cancelButtonProps={null}
Expand Down

0 comments on commit 2295fb4

Please sign in to comment.