Skip to content

Commit

Permalink
fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala committed Aug 21, 2024
1 parent 1502747 commit 4ee494e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/actions/delegate/DelegateAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
SUSPENSE,
useStateObservable,
} from "@react-rxjs/core"
import { routeChain$, delegateAccount$ } from "./delegate"
import { routeChain$, routeDelegateAccount$ } from "./delegate"
import {
combineLatest,
concat,
Expand Down Expand Up @@ -41,7 +41,7 @@ const optimalAmount$ = state((account: SS58String) =>
from(getOptimalAmount(account)),
)
const amount$ = state(
combineLatest([routeChain$, delegateAccount$, selectedAccount$]).pipe(
combineLatest([routeChain$, routeDelegateAccount$, selectedAccount$]).pipe(
switchMapSuspended(([, , account]) => {
if (!account) return EMPTY
return concat(
Expand Down Expand Up @@ -171,7 +171,7 @@ const SelectTracks: React.FC = () => {
const delegateInput$ = state(
combineLatest([
selectedAccount$,
delegateAccount$,
routeDelegateAccount$,
conviction$.pipe(map((x) => (x === SUSPENSE ? null : x))),
amount$.pipe(map((x) => (x === SUSPENSE ? null : x))),
concat(
Expand Down Expand Up @@ -267,7 +267,7 @@ const Warnings: React.FC = () => {

export const DelegateAction = () => {
const chainData = useStateObservable(routeChain$)
const delegateAccount = useStateObservable(delegateAccount$)
const delegateAccount = useStateObservable(routeDelegateAccount$)
return (
<div className="flex flex-col text-center items-center">
<h1 className="text-lg my-5 font-semibold">
Expand Down

0 comments on commit 4ee494e

Please sign in to comment.