Skip to content

Commit

Permalink
Merge branch 'main' into add-llc
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfirefist committed Dec 7, 2023
2 parents 6d4c72b + f07385b commit 3b16426
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/components/panels/WithdrawPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ export function WithdrawPanel({ mainStakeAccount }: WithdrawPanelProps) {

const isSufficientBalance = isSufficientBalanceFn(amount, unlockedPythBalance)

const onAction = useCallback(() => {
const onAction = () => {
withdrawMutation.mutate({
amount,
// action enabled only when the two props are defined
mainStakeAccount: mainStakeAccount as StakeAccount,
stakeConnection: stakeConnection!,
})
}, [withdrawMutation.mutate, amount, mainStakeAccount, stakeConnection])
}

return (
<Layout>
Expand Down
4 changes: 2 additions & 2 deletions staking/app/StakeConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,8 @@ export class StakeConnection {

public isLlcMember(stakeAccount: StakeAccount) {
return (
stakeAccount.stakeAccountMetadata.signedAgreementHash ==
this.config.agreementHash
JSON.stringify(stakeAccount.stakeAccountMetadata.signedAgreementHash) ==
JSON.stringify(this.config.agreementHash)
);
}

Expand Down

0 comments on commit 3b16426

Please sign in to comment.