Disable btn only in authenticated

This commit is contained in:
vjrj 2018-03-02 10:38:45 +01:00
parent ac33bfa158
commit ea8f6fbf5b

View file

@ -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 });