Skip to content

Commit 7f4f413

Browse files
committed
refactor(submissionDetails): check multiple diff types of image extensions to display submission image
1 parent 471b058 commit 7f4f413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/src/views/SubmissionDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const SubmissionDetails = () => {
9797
<div className="fmtm-capitalize fmtm-text-base fmtm-font-bold fmtm-leading-normal fmtm-text-[#555] fmtm-break-words">
9898
{key}
9999
</div>
100-
{typeof value === 'string' && value?.includes('.jpg') ? (
100+
{typeof value === 'string' && /\.(jpeg|jpg|png|gif|bmp|webp|svg|tiff?|heic|avif)$/i.test(value) ? (
101101
submissionPhotosLoading ? (
102102
<CoreModules.Skeleton style={{ width: '16rem', height: '8rem' }} className="!fmtm-rounded-lg" />
103103
) : (

0 commit comments

Comments
 (0)