diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-09 16:34:12 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2024-10-09 16:34:12 +0300 |
| commit | a7c282ca348c1e8e60559e5c064caee28ba11eec (patch) | |
| tree | 43bd7bdb2bbc80b92b96a14b36c33f0b7df622c9 /frontend/src/pages/Rules.tsx | |
| parent | Rankings page (diff) | |
| download | lphub-a7c282ca348c1e8e60559e5c064caee28ba11eec.tar.gz lphub-a7c282ca348c1e8e60559e5c064caee28ba11eec.tar.bz2 lphub-a7c282ca348c1e8e60559e5c064caee28ba11eec.zip | |
refactor: so much shit
Diffstat (limited to 'frontend/src/pages/Rules.tsx')
| -rw-r--r-- | frontend/src/pages/Rules.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/pages/Rules.tsx b/frontend/src/pages/Rules.tsx index 516b73c..99fff1f 100644 --- a/frontend/src/pages/Rules.tsx +++ b/frontend/src/pages/Rules.tsx | |||
| @@ -11,7 +11,7 @@ const Rules: React.FC = () => { | |||
| 11 | const fetchRules = async () => { | 11 | const fetchRules = async () => { |
| 12 | try { | 12 | try { |
| 13 | const response = await fetch( | 13 | const response = await fetch( |
| 14 | 'https://raw.githubusercontent.com/pektezol/leastportalshub/main/README.md' | 14 | 'https://raw.githubusercontent.com/pektezol/leastportalshub/typescript/RULES.md' |
| 15 | ); | 15 | ); |
| 16 | if (!response.ok) { | 16 | if (!response.ok) { |
| 17 | throw new Error('Failed to fetch README'); | 17 | throw new Error('Failed to fetch README'); |
| @@ -21,7 +21,7 @@ const Rules: React.FC = () => { | |||
| 21 | } catch (error) { | 21 | } catch (error) { |
| 22 | console.error('Error fetching Rules:', error); | 22 | console.error('Error fetching Rules:', error); |
| 23 | } | 23 | } |
| 24 | setRulesText(rulesText) | 24 | // setRulesText(rulesText) |
| 25 | }; | 25 | }; |
| 26 | fetchRules(); | 26 | fetchRules(); |
| 27 | }, []); | 27 | }, []); |