File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1515 ` ../../assets/individual-sponsors/${src && src !== " " ? src : " no-icon" }.png?url `
1616 );
1717 iconUrl = module .default ;
18- } catch ( e ) {
18+ } catch {
1919 console .error (` Icon not found: ${src } ` );
2020}
2121---
You can’t perform that action at this time.
0 commit comments