title: javascript is not reading my if statement
body: <p>I have a function for connection to firebase:</p>
  <pre><code>firestore.collection('customers').doc(user.uid).collection('subscriptions')
          .where('status', '==', 'trialing' || 'active').get()
          .then(activeSubscriptions =&gt; {
            // if this is true, the user has no active subscription.
            if (activeSubscriptions.empty === true) {
              createCheckoutSession(user.uid)
            } else if (activeSubscriptions.size &gt; 1){
              alert(&quot;you have more then one active subscription. please manage your subscriptions and cancel one of your subscriptions to access the application&quot;)
            } else {
              this.props.history.push(routes.CLIENTS)
            }
          });
  </code></pre>
  <p>the <code>status</code> of the subscription is actually <code>active</code> right now, so I need to do <code>this.props.history.push(routes.CLIENTS)</code> &lt;- line, however, it is not and it is calling that <code>createCheckoutSession(user.uid)</code> line instead. I assume that my if comparison is incorrect syntax. any ideas?</p>