rename hasActiveSubscription from useCurrentUser() to hasOngoingSubscription

This commit is contained in:
m5r
2021-10-21 00:01:03 +02:00
parent 6dbdeac4d3
commit 1dd1c2bafe
6 changed files with 19 additions and 9 deletions

View File

@ -1,6 +1,6 @@
import { useQuery } from "blitz";
import getCurrentPhoneNumber from "../../phone-numbers/queries/get-current-phone-number";
import getCurrentPhoneNumber from "app/phone-numbers/queries/get-current-phone-number";
import useCurrentUser from "./use-current-user";
export default function useUserPhoneNumber() {

View File

@ -15,7 +15,7 @@ export default function useCurrentUser() {
organization,
hasFilledTwilioCredentials,
hasPhoneNumber: Boolean(phoneNumber),
hasActiveSubscription: organization && organization.subscriptions.length > 0,
hasOngoingSubscription: organization && organization.subscriptions.length > 0,
refetch: userQuery.refetch,
};
}