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 Sep 26, 2024
1 parent 4e08ea1 commit dbfad3b
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 dbfad3b

Please sign in to comment.