Skip to content

Commit 2736601

Browse files
authored
Update ButtonPage.tsx
1 parent 4f19117 commit 2736601

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/components/ButtonPage.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,9 @@ const ButtonPage = ({ title }: ButtonPageProps) => {
5353
const handleSearch = (value: string) => {
5454
setSearchCode(value);
5555
if (value) {
56-
<<<<<<< HEAD
5756
const searchTerm = value.toLowerCase().replace(/\s+/g, "");
5857
const matchingCodes = Object.values(errorCodes).filter((error) => {
5958
const errorCode = error.code.toLowerCase().replace(/\s+/g, "");
60-
=======
61-
const searchTerm = value.toLowerCase().replace(/\s+/g, '');
62-
const matchingCodes = Object.values(errorCodes).filter((error) => {
63-
const errorCode = error.code.toLowerCase().replace(/\s+/g, '');
64-
>>>>>>> 2bfa29f735ab502a3413098f6c892ca7c079aae4
6559
return errorCode.includes(searchTerm) || searchTerm.includes(errorCode);
6660
});
6761
setErrorDetails(matchingCodes);
@@ -126,4 +120,4 @@ const ButtonPage = ({ title }: ButtonPageProps) => {
126120
);
127121
};
128122

129-
export default ButtonPage;
123+
export default ButtonPage;

0 commit comments

Comments
 (0)