Skip to content

Commit

Permalink
chore: skip redirect on local only
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Dec 11, 2023
1 parent fbb8a2b commit 501bee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build-a-bull/src/features/rounds/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ const VotingRounds = () => {
// Redirect to live round
const navigate = useNavigate()
useEffect(() => {
// TODO: add production voting round
const appId = import.meta.env.VITE_ALGOD_NETWORK === 'testnet' ? '499163907' : ''
if (import.meta.env.VITE_ENVIRONMENT !== 'dev') {
if (import.meta.env.VITE_ENVIRONMENT !== 'local') {
navigate(`/vote/${appId}`)
}
}, [])
Expand Down

0 comments on commit 501bee6

Please sign in to comment.