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 f13287e commit a2c235c
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 a2c235c

Please sign in to comment.