Skip to content

Commit f054371

Browse files
authored
Update TextbookForm.jsx
1 parent 7a1dd3e commit f054371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/textbooks/textbook-form/TextbookForm.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const TextbookForm = ({
172172
onSavingStatus={onSavingStatus}
173173
invalidFileSizeMore={intl.formatMessage(
174174
messages.uploadModalFileInvalidSizeText,
175-
{ maxSize: UPLOAD_FILE_MAX_SIZE / (1024 * 1024) },
175+
{ maxSize: getUploadFileMaxSize() / (1024 * 1024) },
176176
)}
177177
onSelectFile={setSelectedFile}
178178
previewComponent={(
@@ -181,7 +181,7 @@ const TextbookForm = ({
181181
<span className="modal-preview-text">{selectedFile}</span>
182182
</div>
183183
)}
184-
maxSize={UPLOAD_FILE_MAX_SIZE}
184+
maxSize={getUploadFileMaxSize()}
185185
/>
186186
<PromptIfDirty dirty={dirty} />
187187
</>

0 commit comments

Comments
 (0)