Skip to content

Commit

Permalink
Merge branch 'meta-tx-gateway' of https://github.com/bosonprotocol/in…
Browse files Browse the repository at this point in the history
…terface into meta-tx-gateway
  • Loading branch information
levalleux-ludo committed Dec 20, 2024
2 parents eed47b7 + 1a7b790 commit 4b5787b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/product/ProductImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const getProductImageError = (
typeof Object.values(errors.productImages)?.[0] === "string"
? Object.values(errors.productImages)?.[0]
: null;
return String(error);
return error? String(error) : error;
};
export default function ProductImages({ onChangeOneSetOfImages }: Props) {
const { nextIsDisabled, values, errors } = useForm();
Expand Down
2 changes: 1 addition & 1 deletion src/pages/chat/components/UploadForm/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const validationOfFile = ({
}) => {
const formats = supportedFormats || SUPPORTED_FILE_FORMATS;
let schema = Yup.mixed();
if (!isOptional) {
if (isOptional) {
schema = schema.nullable();
}
return schema
Expand Down

0 comments on commit 4b5787b

Please sign in to comment.