Skip to content

Commit

Permalink
Removed dapp version field
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Escudero authored and Mauro Escudero committed Oct 4, 2023
1 parent 032c3a8 commit d4ffeef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const AuditorRunTestForm: React.FC<IAuditorRunTestForm> = ({
mode: "all",
defaultValues: profile && profile.dapp ? {
repoURL: profile.dapp.owner && profile.dapp.repo ? `https://github.com/${profile.dapp.owner}/${profile.dapp.repo}` : undefined,
name: profile.dapp.name, version: profile.dapp.version,
name: profile.dapp.name
} : undefined
});

Expand Down Expand Up @@ -161,7 +161,7 @@ const AuditorRunTestForm: React.FC<IAuditorRunTestForm> = ({
formData.repoURL.split("/");
dispatch(setRepoUrl(`https://github.com/${username}/${repoName}`));

const { commit, name, version, subject } = formData;
const { commit, name, subject } = formData;

setSubmitting(true);
loadingRunId && loadingRunId(true)
Expand All @@ -174,9 +174,9 @@ const AuditorRunTestForm: React.FC<IAuditorRunTestForm> = ({
owner: username,
repo: repoName,
name: name,
version: version,
subject: subject,
githubToken: accessToken || null,
version: 'this_field_is_deprecated_field_and_should_be_removed'
},
}));
if (response.payload && response.payload?.dapp?.owner) {
Expand Down Expand Up @@ -275,7 +275,6 @@ const AuditorRunTestForm: React.FC<IAuditorRunTestForm> = ({
commit: "",
name: "",
subject: "",
version: "",
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [testAgain]);
Expand Down Expand Up @@ -335,15 +334,6 @@ const AuditorRunTestForm: React.FC<IAuditorRunTestForm> = ({
{...form.register("name")}
/>

<Input
label="DApp Version"
type="text"
id="version"
required={true}
disabled={submitting}
{...form.register("version")}
/>

<TextArea
placeholder="DApp Subject"
maxRows={2}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const auditorRunTestFormSchema = yup.object().shape({
return true;
},
}),
version: yup.string().required("This field is required"),
name: yup.string().required("This field is required"),
subject: yup
.string()
Expand Down

0 comments on commit d4ffeef

Please sign in to comment.