Skip to content

Commit

Permalink
🛣 Bugfix/leave role fixed (#2861)
Browse files Browse the repository at this point in the history
* leave role fixed

* leave role fixed

* condition fixed

Co-authored-by: tomekstepien <tomasz.stepien@elliptic.co>
  • Loading branch information
stepien4soft and tomekstepien authored Apr 19, 2022
1 parent 5a1776d commit d6a9b12
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ import { TextMedium } from '@/common/components/typography'
import { useSignAndSendTransaction } from '@/common/hooks/useSignAndSendTransaction'
import { TransactionModal } from '@/common/modals/TransactionModal'

import { Worker } from '../../types'
import { WorkerWithDetails } from '../../types'

interface Props {
onClose: () => void
transaction: SubmittableExtrinsic<'rxjs', ISubmittableResult>
worker: Worker
worker: WorkerWithDetails
service: ActorRef<any>
}

export const LeaveRoleSignModal = ({ onClose, transaction, worker, service }: Props) => {
const { allAccounts } = useMyAccounts()
const signer = accountOrNamed(allAccounts, worker.membership.controllerAccount, 'Controller account')
const signer = accountOrNamed(allAccounts, worker.roleAccount, 'Role account')
const { paymentInfo, sign, isReady } = useSignAndSendTransaction({
transaction,
signer: signer?.address ?? '',
Expand Down

1 comment on commit d6a9b12

@vercel
Copy link

@vercel vercel bot commented on d6a9b12 Apr 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pioneer-2 – ./

pioneer-2.vercel.app
pioneer-2-joystream.vercel.app
pioneer-2-git-dev-joystream.vercel.app

Please sign in to comment.