Skip to content

Commit

Permalink
fix: handle modal closure after stake deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelCastilloB committed Nov 6, 2024
1 parent d2fc6bd commit 6018a11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/nami/src/ui/app/components/transactionBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ const TransactionBuilder = (undefined, ref) => {
duration: 3000,
});
}
undelegateRef.current?.closeModal();
}}
getCbor={async () => {
if (!delegationStoreDelegationTxBuilder) {
Expand All @@ -512,7 +513,7 @@ const TransactionBuilder = (undefined, ref) => {
status: 'error',
duration: 3000,
});
delegationRef.current?.closeModal();
undelegateRef.current?.closeModal();
return '';
}

Expand Down Expand Up @@ -634,7 +635,7 @@ const TransactionBuilder = (undefined, ref) => {
status: 'error',
duration: 3000,
});
delegationRef.current?.closeModal();
collateralRef.current?.closeModal();
return '';
}

Expand Down

0 comments on commit 6018a11

Please sign in to comment.