Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): instantiate KMD client inside dev-only function #162

Merged
merged 2 commits into from
May 21, 2024

Conversation

drichar
Copy link
Collaborator

@drichar drichar commented May 21, 2024

The KMD client is only exposed in localnet environment, but it was being instantiated at the top level of /src/utils/devlopment.tsx

This broke the app in staging/prod (i.e., testnet).

Now it is instantiated inside the incrementRoundNumberBy function, so only when used by the development-only simulateEpoch function.

drichar added 2 commits May 21, 2024 15:01
The KMD client is only exposed in localnet environment, but it was being instantiated at the top level of /src/utils/devlopment.tsx

This broke the app in staging/prod (i.e., testnet). Now it is instantiated inside the `incrementRoundNumberBy` function, so only when used by the development-only `simulateEpoch` function.
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
reti ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 7:03pm

@drichar drichar merged commit bba6d80 into dev May 21, 2024
3 checks passed
@drichar drichar deleted the fix/ui-kmd-client-development-only branch May 21, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant