Skip to content

Commit 3300bb3

Browse files
committed
fix(hardcover): resolve formatter and eslint indentation conflict
1 parent 2b15baa commit 3300bb3

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/lib/hooks/use-hardcover-book-actions.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ export interface HardcoverMessage {
99
text: string;
1010
}
1111

12+
interface ResolvedHardcoverMetadata {
13+
title: string;
14+
description: string | null;
15+
image_url: string | null;
16+
isbn: string | null;
17+
slug: string | null;
18+
}
19+
1220
interface FormSetter {
1321
setFieldValue: (field: string, value: unknown) => void;
1422
}
@@ -264,15 +272,7 @@ export const useHardcoverBookActions = ({
264272
};
265273

266274
const selectSearchResult = async (result: HardcoverSearchResult) => {
267-
let resolvedMetadata:
268-
| {
269-
title: string;
270-
description: string | null;
271-
image_url: string | null;
272-
isbn: string | null;
273-
slug: string | null;
274-
}
275-
| undefined;
275+
let resolvedMetadata: ResolvedHardcoverMetadata | undefined;
276276

277277
if (hardcoverApiKey) {
278278
const metadataById = await commands.fetchHardcoverMetadataByBookId(

0 commit comments

Comments
 (0)