Skip to content

Commit

Permalink
adding Blob to tryParseJson
Browse files Browse the repository at this point in the history
  • Loading branch information
videvide committed Jan 18, 2025
1 parent b2de7e7 commit e6eccc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FieldErrors, FieldValues, Resolver } from "react-hook-form";

const tryParseJSON = (value: string | File) => {
if (value instanceof File) {
const tryParseJSON = (value: string | File | Blob) => {
if (value instanceof File || value instanceof Blob) {
return value;
}
try {
Expand Down

0 comments on commit e6eccc4

Please sign in to comment.