mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-27 04:32:32 +02:00
Fixed invalid telegram contact url
This commit is contained in:
@@ -13,7 +13,7 @@ const getContactHref = (name: string, contact: string) => {
|
||||
href = `https://vk.com/${contact}`;
|
||||
break;
|
||||
case 'telegram':
|
||||
href = `telegram:${contact}`;
|
||||
href = `https://t.me/${contact}`;
|
||||
break;
|
||||
case 'email':
|
||||
href = `mailto:${contact}`;
|
||||
|
@@ -6,6 +6,6 @@ test('getContactHref', () => {
|
||||
expect(getContactHref('github', '#')).toBe('https://github.com/#');
|
||||
expect(getContactHref('email', '#')).toBe('mailto:#');
|
||||
expect(getContactHref('vkontakte', '#')).toBe('https://vk.com/#');
|
||||
expect(getContactHref('telegram', '#')).toBe('telegram:#');
|
||||
expect(getContactHref('telegram', '#')).toBe('https://t.me/#');
|
||||
expect(getContactHref('rss', '#')).toBe('#');
|
||||
});
|
||||
|
Reference in New Issue
Block a user