Skip to content

Commit

Permalink
fix: var name
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Dec 13, 2023
1 parent 0d3c082 commit 240656a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Modals/UploadFileModal/UploadFileModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ const UploadFileModal: FC<CreatorModalProps> = ({
podName: activePod,
},
(event: UploadProgressInfo) => {
const { uploadPercentage } = event.data || {};
const { percentage } = event.data || {};

if (uploadPercentage) {
if (percentage) {
setUploadPercentage(
calculateUploadPercentage(
uploadedItemsRef.current.length + failedUplods.length,
Expand Down

0 comments on commit 240656a

Please sign in to comment.