Skip to content

Commit

Permalink
fix show migrate modal state
Browse files Browse the repository at this point in the history
  • Loading branch information
fmtabbara committed Oct 14, 2024
1 parent e2f20d3 commit b566f5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nym-wallet/src/pages/bonding/Bonding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ export const Bonding = () => {
const [confirmationDetails, setConfirmationDetails] = useState<ConfirmationDetailProps>();
const [uncappedSaturation, setUncappedSaturation] = useState<number | undefined>();
const [showMigrationModal, setShowMigrationModal] = useState(false);
const [showMigrateLegacyNodeModal, setShowMigrateLegacyNodeModal] = useState(shouldShowMigrateLegacyNodeModal());
const [showMigrateLegacyNodeModal, setShowMigrateLegacyNodeModal] = useState(false);

useEffect(() => {
if (bondedNode && isMixnode(bondedNode) && bondedNode.uncappedStakeSaturation) {
setUncappedSaturation(bondedNode.uncappedStakeSaturation);
}

setShowMigrateLegacyNodeModal(shouldShowMigrateLegacyNodeModal());
}, [bondedNode]);

const handleMigrateVestedMixnode = async () => {
Expand Down

0 comments on commit b566f5f

Please sign in to comment.