diff --git a/shared/handlers/account.handler.ts b/shared/handlers/account.handler.ts index 034fd2f..1f85280 100644 --- a/shared/handlers/account.handler.ts +++ b/shared/handlers/account.handler.ts @@ -4,7 +4,6 @@ import { useEffect, useState } from 'react' import { createNotification } from '../stores/notification/notification.model' import { notificationService } from '../stores/notification/notification.service' import { - discordTagRegex, steamTradeLinkRegex, steamProfileLinkRegex, } from '../stores/user/user.model' @@ -125,19 +124,6 @@ const AccountSettingsHandler = () => { return } - if ( - formValue.discordTag.trim() && - !discordTagRegex.test(formValue.discordTag) - ) { - const notification = createNotification({ - content: 'Invalid Discord tag', - duration: 5000, - type: 'warning', - }) - notificationService.addNotification(notification) - return - } - userService .updateAccountSettings({ displayName: formValue.displayName, diff --git a/shared/stores/user/user.model.ts b/shared/stores/user/user.model.ts index 62a76c3..c2b66f6 100644 --- a/shared/stores/user/user.model.ts +++ b/shared/stores/user/user.model.ts @@ -114,6 +114,5 @@ const steamProfileLinkRegex = /^(?:https?:\/\/)?steamcommunity\.com\/(?:profiles|id)\/[a-zA-Z0-9\-._~]+\/?$/ const steamTradeLinkRegex = /^(?:https?:\/\/)?steamcommunity\.com\/tradeoffer\/new\/?\?partner=[0-9]+&token=[a-zA-Z0-9_-]+$/ -const discordTagRegex = /^.{2,32}#[0-9]{4}$/ -export { steamProfileLinkRegex, steamTradeLinkRegex, discordTagRegex } +export { steamProfileLinkRegex, steamTradeLinkRegex }