Skip to content

Commit

Permalink
fix mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
eshark9312 committed Sep 14, 2023
1 parent 0200e68 commit c13d72f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ export const BuyMembershipModal = () => {
return <BuyMembershipFormModal onClose={hideModal} onSubmit={onSubmit} membershipPrice={membershipPrice} />
}

if (
(state.matches('buyMembershipTx') ||
state.matches('buyValidatorMembershipTx') ||
state.matches('bondValidatorAccTx')) &&
api
) {
if ((state.matches('buyMembershipTx') || state.matches('buyValidatorMembershipTx')) && api) {
const transaction = api.tx.members.buyMembership(toMemberTransactionParams(state.context.form))
const { form } = state.context
const service = state.children.transaction
Expand Down

0 comments on commit c13d72f

Please sign in to comment.