summaryrefslogtreecommitdiff
path: root/src/pages/blobs/_components
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/blobs/_components')
-rw-r--r--src/pages/blobs/_components/NewShape.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pages/blobs/_components/NewShape.tsx b/src/pages/blobs/_components/NewShape.tsx
index 05f9e6f..a141177 100644
--- a/src/pages/blobs/_components/NewShape.tsx
+++ b/src/pages/blobs/_components/NewShape.tsx
@@ -1,7 +1,7 @@
import { useState, useEffect } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import ShapePreview from './ShapePreview.tsx';
-import { generateBlob } from '../../../utils';
+import { generateBlob, uploadDisabled } from '../../../utils';
import type { BlobProps } from '../../../types.ts';
interface Props {
@@ -51,7 +51,7 @@ export default function NewShape(props: Props) {
<button className="btn btn-primary" onClick={randomizeBlob}>
Randomize
</button>
- <button className="btn btn-primary" onClick={uploadBlob} disabled={wasUploaded || !blobData}>
+ <button className="btn btn-primary" onClick={uploadBlob} disabled={uploadDisabled || wasUploaded || !blobData}>
Upload
</button>
</div>