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

Feature/billing #306

Merged
merged 3 commits into from
Aug 15, 2024
Merged

Feature/billing #306

merged 3 commits into from
Aug 15, 2024

Conversation

ygrishajev
Copy link
Contributor

No description provided.

@ygrishajev ygrishajev changed the base branch from main to feature/managed-network August 14, 2024 10:43
@ygrishajev ygrishajev changed the base branch from feature/managed-network to main August 14, 2024 10:43
@ygrishajev ygrishajev requested review from baktun14 and Redm4x August 14, 2024 14:33
@ygrishajev ygrishajev changed the base branch from main to feature/managed-network August 14, 2024 14:33
const wallets = getStorageWallets();

return { wallets };
userId?: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe I missed it, where do we set this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when managed wallet is fetched from the backend it has a userId and is persisted as is to the local storage

@@ -36,6 +36,12 @@ export const useManagedWallet = () => {
setSelectedNetworkId(NEXT_PUBLIC_MANAGED_WALLET_NETWORK_ID);
});

useEffect(() => {
if (user?.id && !user.userId) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is for anonymous user account?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

@ygrishajev ygrishajev merged commit 3ac0c10 into feature/managed-network Aug 15, 2024
5 checks passed
@ygrishajev ygrishajev deleted the feature/billing branch August 15, 2024 15:55
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