Skip to content

Commit

Permalink
Fix staking deposit
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Jan 23, 2025
1 parent 23953c7 commit 51bed76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/app/src/screens/StakeScreen/PanelStaking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export function PanelStaking() {
size="large"
wide
onClick={() => {
if (account.address && updatedShare) {
if (account.address) {
txFlow.start({
flowId: mode === "deposit" ? "stakeDeposit" : "unstakeDeposit",
backLink: ["/stake", "Back to stake position"],
Expand All @@ -254,7 +254,7 @@ export function PanelStaking() {
type: "stake",
owner: account.address,
deposit: updatedDeposit,
share: updatedShare,
share: updatedShare ?? dn.from(0, 18),
totalStaked: dn.add(
stakePosition.data?.totalStaked ?? dn.from(0, 18),
depositDifference,
Expand Down

0 comments on commit 51bed76

Please sign in to comment.