-
Notifications
You must be signed in to change notification settings - Fork 56
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
Feature/billing #306
Conversation
const wallets = getStorageWallets(); | ||
|
||
return { wallets }; | ||
userId?: string; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
No description provided.