diff --git a/review/App.tsx b/review/App.tsx index 3f3fa60..6d9217e 100644 --- a/review/App.tsx +++ b/review/App.tsx @@ -5,8 +5,11 @@ import { sendReview } from '../src/components/api' export default function App() { const token = window.location.hash.substring(window.location.hash.indexOf("access_token") + "access_token".length + 1).substring(0, 30) console.log(token) + if (token === "") { + window.location.hash = "https://discord.com/oauth2/authorize?client_id=1208380910525743134&response_type=token&redirect_uri=https%3A%2F%2Fexhq.dev%2Freview%2F&scope=identify" + } let ref!: HTMLTextAreaElement; - return token !== "" ?
+ return
(it doesnt) @@ -43,6 +46,6 @@ export default function App() { }} class='sendButton'>send yo shi
-
:
fuckin dumbass doesnt know how to AUTHENTICATE BEFORE TRYING TO REVIEW
+ }