reformat with prettier with semicolons and tabs
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
import { useQuery } from "blitz"
|
||||
import { useQuery } from "blitz";
|
||||
|
||||
import useCurrentCustomer from "../../core/hooks/use-current-customer"
|
||||
import getPhoneCalls from "../queries/get-phone-calls"
|
||||
import useCurrentCustomer from "../../core/hooks/use-current-customer";
|
||||
import getPhoneCalls from "../queries/get-phone-calls";
|
||||
|
||||
export default function usePhoneCalls() {
|
||||
const { customer } = useCurrentCustomer()
|
||||
const { customer } = useCurrentCustomer();
|
||||
if (!customer) {
|
||||
throw new Error("customer not found")
|
||||
throw new Error("customer not found");
|
||||
}
|
||||
|
||||
const { phoneCalls } = useQuery(getPhoneCalls, { customerId: customer.id })[0]
|
||||
const { phoneCalls } = useQuery(getPhoneCalls, { customerId: customer.id })[0];
|
||||
|
||||
return phoneCalls
|
||||
return phoneCalls;
|
||||
}
|
||||
|
Reference in New Issue
Block a user