Skip to content

Commit

Permalink
[B] Add guard to asset file extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
1aurend authored and zdavis committed Aug 20, 2024
1 parent 40988ad commit 3aebc76
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { useTranslation } from "react-i18next";
import * as Styled from "./styles";

const extToTag = ext => {
switch (ext.toLowerCase()) {
switch (ext?.toLowerCase()) {
case "gif":
case "jpeg":
case "jpg":
Expand Down

0 comments on commit 3aebc76

Please sign in to comment.