Skip to content

Commit

Permalink
Update connected.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-herridge authored Jan 26, 2024
1 parent 4a210d6 commit a8ddef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ggg/connected.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Connected() {
const { connect, jwt } = usePoeStackAuth();

useEffect(() => {
const stateRaw = state.toString()
const stateRaw = state?.toString() ?? ""
if(stateRaw.includes("dawncode")) {
if(!!jwt) {
router.push(`https://bulk.poestack.com/auth?jwt=${jwt}`);
Expand All @@ -21,7 +21,7 @@ export default function Connected() {
useEffect(() => {
if (code?.length) {
const codeRaw = code.toString()
const stateRaw = state.toString()
const stateRaw = state?.toString() ?? ""
connect(codeRaw);

if (
Expand Down

0 comments on commit a8ddef3

Please sign in to comment.