Skip to content

Commit

Permalink
Update Sidebar membership display after edit tx (Joystream#3133) (Joy…
Browse files Browse the repository at this point in the history
…stream#3773)

* Update Sidebar membership display after edit tx (Joystream#3133)

* remove unused variables

Co-authored-by: Joystream Stats <dev@joystreamstats.live>
  • Loading branch information
traumschule and Joystream Stats authored Nov 17, 2022
1 parent 9b7631f commit 5cab9bf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ import { SignTransactionModal } from '@/common/modals/SignTransactionModal/SignT
import { UpdateMembershipModalCall } from '@/memberships/modals/UpdateMembershipModal/index'
import { createBatch } from '@/memberships/modals/UpdateMembershipModal/utils'

import { useMyMemberships } from '../../hooks/useMyMemberships'

import { updateMembershipMachine } from './machine'
import { UpdateMembershipFormModal } from './UpdateMembershipFormModal'
import { UpdateMembershipSuccessModal } from './UpdateMembershipSuccessModal'

export const UpdateMembershipModal = () => {
const { api } = useApi()
const { setActive } = useMyMemberships()
const {
hideModal,
modalData: { member },
Expand Down Expand Up @@ -44,6 +47,7 @@ export const UpdateMembershipModal = () => {
}

if (state.matches('success')) {
setActive(member)
return <UpdateMembershipSuccessModal onClose={hideModal} member={member} />
}

Expand Down

0 comments on commit 5cab9bf

Please sign in to comment.