We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471b058 commit 7f4f413Copy full SHA for 7f4f413
src/frontend/src/views/SubmissionDetails.tsx
@@ -97,7 +97,7 @@ const SubmissionDetails = () => {
97
<div className="fmtm-capitalize fmtm-text-base fmtm-font-bold fmtm-leading-normal fmtm-text-[#555] fmtm-break-words">
98
{key}
99
</div>
100
- {typeof value === 'string' && value?.includes('.jpg') ? (
+ {typeof value === 'string' && /\.(jpeg|jpg|png|gif|bmp|webp|svg|tiff?|heic|avif)$/i.test(value) ? (
101
submissionPhotosLoading ? (
102
<CoreModules.Skeleton style={{ width: '16rem', height: '8rem' }} className="!fmtm-rounded-lg" />
103
) : (
0 commit comments