Skip to content

Commit

Permalink
Fixes issues with attachment previews (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandip-mane authored Dec 24, 2024
1 parent cf71fb0 commit 77c7c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Common/FileIcon.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FileIcon, defaultStyles } from "react-file-icon";

const File = ({ fileName, className }) => {
const extension = fileName.match(/([^.]+)$/)[1];
const extension = fileName.match(/([^.]+)$/) & [1];

return (
<div {...{ className }}>
Expand Down

0 comments on commit 77c7c93

Please sign in to comment.