Skip to content

Commit ccb7d19

Browse files
committed
chore: fix lint error
1 parent a1ee01a commit ccb7d19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

2025/src/components/Sessions/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ export async function getSessionImageUrl(sessionId: string): Promise<string> {
1313
const suffix = customExtensions[sessionId] ?? "png";
1414

1515
const imagePath = `/src/assets/sessions/${sessionId}.${suffix}`;
16-
if (images[imagePath]) {
17-
const imageModule = await images[imagePath]();
16+
const imageModuleFunction = images[imagePath];
17+
if (imageModuleFunction != null) {
18+
const imageModule = await imageModuleFunction();
1819
return imageModule.default.src;
1920
}
2021

0 commit comments

Comments
 (0)