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: staking now shows when no wallet attached #147

Merged
merged 1 commit into from
Nov 11, 2021
Merged

Conversation

sakulstra
Copy link
Contributor

incentive helper is now optional

incentive helper is now optional
preferredConnectionMode === ConnectionMode.rpc || network !== apolloClientNetwork
preferredConnectionMode === ConnectionMode.rpc ||
network !== apolloClientNetwork ||
!networkConfig.addresses.uiIncentiveDataProvider
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not happy with that fix, when i have some time i'll look into redoing the dataflow.
It's kinda nutzs that we go soo deep down the dom just to set a boolean skip flag because there's no address set

userAddress: string = ethers.constants.AddressZero,
helperAddress: string
) => {
const loadStakeData = async (_userAddress: string | undefined, helperAddress: string) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useraddress is not undefined, but an empty string if not set so this default value doesn't work

@github-actions
Copy link
Contributor

@sakulstra sakulstra merged commit 731a54d into master Nov 11, 2021
@sakulstra sakulstra deleted the fix/staking branch November 11, 2021 13:56
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.

2 participants