Disable btn only in authenticated
This commit is contained in:
parent
ac33bfa158
commit
ea8f6fbf5b
1 changed files with 1 additions and 1 deletions
|
|
@ -34,9 +34,9 @@ class SubscriptionEditor extends React.Component {
|
|||
|
||||
const authenticated = !!Meteor.userId();
|
||||
const self = this;
|
||||
self.setState({ disableFstBtn: true });
|
||||
|
||||
if (authenticated) {
|
||||
self.setState({ disableFstBtn: true });
|
||||
Meteor.call(methodToCall, doc, (error, subscriptionId) => {
|
||||
if (error) {
|
||||
self.setState({ disableFstBtn: false });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue