Fixed conversion enabled logic.

This commit is contained in:
Patrick Fic
2020-01-16 10:41:42 -08:00
parent 619cc31c68
commit 5e19d53b29
3 changed files with 13 additions and 3 deletions

View File

@@ -75,7 +75,9 @@ function JobTombstone({ job, ...otherProps }) {
const tombstoneTitle = (
<div>
<Avatar size='large' alt='Vehicle Image' src={CarImage} />
{t("jobs.fields.ro_number") + " " + jobContext.ro_number ?? "0"}
{`${t("jobs.fields.ro_number")} ${
jobContext.ro_number ? jobContext.ro_number : t("general.labels.na")
}`}
</div>
);
@@ -99,7 +101,7 @@ function JobTombstone({ job, ...otherProps }) {
<Button
key='convert'
type='dashed'
disabled={!jobContext.converted}
disabled={jobContext.converted}
onClick={() => {
mutationConvertJob({
variables: { jobId: jobContext.id }