Skip to content

Commit

Permalink
Fix typos and improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
christianversloot committed Dec 5, 2023
1 parent e4e9535 commit 22cf693
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CsvTable from '../CsvTable';
import axios from 'axios';
import { Paragraph } from '../../typographies';

const resposneSizeConstant = 5 * 1024 * 1024;
const responseSizeConstant = 5 * 1024 * 1024;

function Modal({
message,
Expand All @@ -28,7 +28,7 @@ function Modal({
};

useEffect(() => {
if (Number(size) < resposneSizeConstant) return proceed(true);
if (Number(size) < responseSizeConstant) return proceed(true);
}, [isProceed]); //eslint-disable-line

return (
Expand Down Expand Up @@ -162,7 +162,7 @@ const ArtifactVisualization = ({
let size = node?.metadata?.storage_size?.value;
return (
<Modal
message="size of resposne in larger than 5mb. Do you want to continue?"
message="Size of response is larger than 5 MB. Do you want to continue?"
proceed={setProceed}
size={size}
/>
Expand Down

0 comments on commit 22cf693

Please sign in to comment.