Skip to content

Commit

Permalink
fix collection registry titles / fractional check
Browse files Browse the repository at this point in the history
  • Loading branch information
NickJ202 committed Jul 26, 2024
1 parent 250d285 commit a7cd99d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ export default function UploadStepsDetails() {
}

function getInvalidContentTokens() {
if (Number(uploadReducer.data.contentTokens) <= 0 || Number(uploadReducer.data.contentTokens) > 1000000) {
const contentTokens = Number(uploadReducer.data.contentTokens);
if (!Number.isInteger(contentTokens) || contentTokens <= 0 || contentTokens > 1000000) {
return {
status: true,
message: language.invalidContentTokens,
Expand Down
2 changes: 1 addition & 1 deletion src/views/Upload/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default function Upload() {
const registryTags = [
{ name: 'Action', value: 'Add-Collection' },
{ name: 'CollectionId', value: processId },
{ name: 'Name', value: cleanProcessField(uploadReducer.data.title) },
{ name: 'Name', value: cleanTagValue(uploadReducer.data.title) },
{ name: 'Creator', value: arProvider.profile.id },
{ name: 'DateCreated', value: dateTime },
];
Expand Down

0 comments on commit a7cd99d

Please sign in to comment.