Skip to content

Commit

Permalink
fix: enable stake button if selected address is the default one rfox (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NeOMakinG authored Jan 20, 2025
1 parent 40dcd7e commit 492a478
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/RFOX/components/AddressSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ export const AddressSelection: FC<AddressSelectionProps> = ({
return fromAccountId(maybeRuneAccountId).account
}, [maybeRuneAccountId])

useEffect(() => {
if (maybeSelectedRuneAddress && !selectedAddress) {
handleRuneAddressChange(maybeSelectedRuneAddress)
}
}, [maybeSelectedRuneAddress, selectedAddress, handleRuneAddressChange])

const filter = useMemo(() => ({ accountId: maybeRuneAccountId }), [maybeRuneAccountId])
const accountNumber = useAppSelector(state => selectAccountNumberByAccountId(state, filter))

Expand Down

0 comments on commit 492a478

Please sign in to comment.