-
Notifications
You must be signed in to change notification settings - Fork 1
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
referral modal #363
base: dev
Are you sure you want to change the base?
referral modal #363
Conversation
This pull request has been deployed to Vercel.
|
import { getWallet } from './wallet' | ||
|
||
async function fetchRefferalCode(address: string) { | ||
const response = await fetch(`http://localhost:3000/api/leaderboard/get-code/${address}`) |
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.
it will be good to extract http://localhost:3000
to constant variable
} | ||
} | ||
|
||
export function* useCode(action: PayloadAction<{ code: string }>): Generator { |
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.
Add snackbars to sucess and failure cases
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.
There is a problem with signing a message from directly connected nightly wallet (not through adapeter)
No description provided.