diff --git a/src/components/pages/History/ComputeJobs/index.tsx b/src/components/pages/History/ComputeJobs/index.tsx
index 765a48171..688bf3f28 100644
--- a/src/components/pages/History/ComputeJobs/index.tsx
+++ b/src/components/pages/History/ComputeJobs/index.tsx
@@ -60,7 +60,11 @@ const columns = [
{
name: 'Finished',
selector: function getTimeRow(row: ComputeJobMetaData) {
- return
+ return row.dateFinished ? (
+
+ ) : (
+ ''
+ )
}
},
{
@@ -103,7 +107,7 @@ export default function ComputeJobs(): ReactElement {
const { accountId } = useWeb3()
const [isLoading, setIsLoading] = useState(true)
const [jobs, setJobs] = useState([])
- const { data } = useQuery(getComputeOrders, {
+ const { data, refetch } = useQuery(getComputeOrders, {
variables: {
user: accountId?.toLowerCase()
}
@@ -114,6 +118,7 @@ export default function ComputeJobs(): ReactElement {
setIsLoading(true)
+ await refetch()
const dtList = []
const computeJobs: ComputeJobMetaData[] = []
for (let i = 0; i < data.tokenOrders.length; i++) {