reformat with prettier with semicolons and tabs

This commit is contained in:
m5r
2021-07-31 23:57:43 +08:00
parent fc4278ca7b
commit 079241ddb0
80 changed files with 1187 additions and 1270 deletions

View File

@ -1,6 +1,6 @@
import { useQuery } from "blitz"
import { useQuery } from "blitz";
import getConversationsQuery from "../queries/get-conversations"
import getConversationsQuery from "../queries/get-conversations";
export default function useConversation(recipient: string) {
return useQuery(
@ -9,11 +9,11 @@ export default function useConversation(recipient: string) {
{
select(conversations) {
if (!conversations[recipient]) {
throw new Error("Conversation not found")
throw new Error("Conversation not found");
}
return conversations[recipient]!
return conversations[recipient]!;
},
}
)
);
}