rename hasActiveSubscription
from useCurrentUser()
to hasOngoingSubscription
This commit is contained in:
@ -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() {
|
||||
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user