Skip to content

Commit

Permalink
removed uuid tip from nick search
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Oct 1, 2024
1 parent c88b683 commit 946cb5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/modules/components/nick_search.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const Searcher = ({ onChange }: SearchProps) => {
const [input, setInput] = useState<string>("");
const [nicknames, setNicknames] = useState<(Interfaces.Option | GroupBase<Interfaces.Option>)[]>([{
value: "no_data",
label: <>Введите никнейм / UUID</>,
label: <>Введите никнейм</>,
isDisabled: true
}]);
const [nickValue, setNickValue] = useState<Interfaces.Option>({ value: "no_data", label: <>Введите никнейм / UUID</> });
const [nickValue, setNickValue] = useState<Interfaces.Option>({ value: "no_data", label: <>Введите никнейм</> });

const fetch_nicknames = (nickname: string) => {
nickname = nickname.replaceAll("-", "").replace(/[^a-z_0-9\s]/gi, '');
Expand All @@ -38,7 +38,7 @@ const Searcher = ({ onChange }: SearchProps) => {
}
setInput(nickname);
if (nickname.length === 0) {
setNicknames([{ value: "no_data", label: <>Введите никнейм / UUID</>, isDisabled: true }]);
setNicknames([{ value: "no_data", label: <>Введите никнейм</>, isDisabled: true }]);
return;
}

Expand Down

0 comments on commit 946cb5a

Please sign in to comment.