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

Accept transfer #310

Merged
merged 6 commits into from
Dec 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Do it
guibescos committed Dec 20, 2023
commit 9c6a340c05ef1cf4d539cce24d0bb4ac4691a232
6 changes: 3 additions & 3 deletions frontend/pages/approve.tsx
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ const ApproveSplit: NextPage = () => {
const [selectedStakeAccount, setSelectStakeAccount] = useState<StakeAccount>()

const router = useRouter()
const { key } = router.query
const { owner } = router.query

const handleSelectStakeAccount = (event: any) => {
for (const stakeAccount of stakeAccounts!) {
@@ -62,7 +62,7 @@ const ApproveSplit: NextPage = () => {
const loadStakeAccounts = async () => {
if (stakeConnection && anchorWallet) {
const stakeAccounts = await stakeConnection.getStakeAccounts(
new PublicKey(key!)
new PublicKey(owner!)
)
setStakeAccounts(stakeAccounts)
} else {
@@ -114,7 +114,7 @@ const ApproveSplit: NextPage = () => {
return (
<Layout>
<SEO title={'Approve Split'} />
<p className=" text-sm ">Approve a split request from {key}</p>
<p className=" text-sm ">Approve a split request from {owner}</p>
<p>
{stakeConnection &&
stakeAccounts !== undefined &&