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

@ -10,7 +10,7 @@ import { formatRelativeDate } from "app/core/helpers/date-formatter";
import useCurrentUser from "app/core/hooks/use-current-user";
export default function PhoneCallsList() {
const { hasActiveSubscription } = useCurrentUser();
const { hasOngoingSubscription } = useCurrentUser();
const [phoneCalls, query] = usePhoneCalls();
useEffect(() => {
@ -25,7 +25,7 @@ export default function PhoneCallsList() {
}
if (phoneCalls.length === 0) {
return hasActiveSubscription ? <EmptyCalls /> : null;
return hasOngoingSubscription ? <EmptyCalls /> : null;
}
return (