Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 77d203d

Browse files
Hubert KosterHubert Koster
authored andcommitted
chore: removing unnecessary code
1 parent 7b06803 commit 77d203d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/hooks/useDynamicImportJSON/index.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,6 @@ const useDynamicImportJSON = () => {
7070
[setRequestInfo, setResponseInfo],
7171
);
7272

73-
// What is the point of the code below? request_body.name can never be exactly equal to selected_value.
74-
// For example: selected_value = 'Active Symbols' request_body.name = 'active_symbols'.
75-
// I also don't know what this code is supposed to do. Right now, it will do nothing.
76-
// commented it out for now. I cannot test this.
77-
78-
// useEffect(() => {
79-
// const hash_value = hash.split('#')[1];
80-
// const request_body = playground_requests.find((el) => el.name === hash_value);
81-
// const is_not_placeholder = text_data.selected_value === request_body?.name;
82-
// if (is_not_placeholder) dynamicImportJSON(text_data.selected_value);
83-
// }, [dynamicImportJSON, hash, text_data.selected_value]);
84-
8573
useEffect(() => {
8674
const hash_value = hash.split('#')[1];
8775
if (hash_value) {

0 commit comments

Comments
 (0)