Skip to content

Commit 25e82cd

Browse files
authored
Merge pull request #132 from Nuzhy-Deriv/nuzhy/update-telegram
Nuzhy/DAPI-756/update telegram link
2 parents e43396c + eee29b5 commit 25e82cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/Footer/__tests__/Footer.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ describe('Footer Component', () => {
2121
render(<Footer />);
2222
const telegramButton = screen.getByText(/Telegram/);
2323
fireEvent.click(telegramButton);
24-
expect(window.open).toHaveBeenCalledWith('https://t.me/derivdotcomofficial', '_blank');
24+
expect(window.open).toHaveBeenCalledWith('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
2525
});
2626

2727
it('opens respective email in a new tab when email button is clicked', () => {
2828
window.open = jest.fn();
2929
render(<Footer />);
3030
const emailButton = screen.getByText(/Send an email/);
31+
expect(emailButton).toBeInTheDocument();
3132
fireEvent.click(emailButton);
3233
expect(window.open).toHaveBeenCalledWith('mailto:api-support@deriv.com', '_blank');
3334
});

src/components/Footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const Footer = () => {
193193
variant='outlined'
194194
className={styles.PaddedButton}
195195
onClick={() => {
196-
window.open('https://t.me/derivdotcomofficial', '_blank');
196+
window.open('https://t.me/+g6FV5tFY1u9lZGE1', '_blank');
197197
}}
198198
>
199199
<SocialTelegramBlackIcon fill='#000000' iconSize='xs' />

0 commit comments

Comments
 (0)