Skip to content

Commit 2d10752

Browse files
committed
fix(submission): correctly handle failed submission
1 parent 665535c commit 2d10752

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Benchmarks/Result.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Result: React.FC<LayoutProps> = ({
3030
isLoading,
3131
cyclomaticComplexity,
3232
}) => {
33-
if (status !== 'done' && status !== 'error') {
33+
if (status !== 'done' && status !== 'failed') {
3434
return (
3535
<div className="flex justify-center dark:text-gray-100">
3636
<Loader
@@ -91,7 +91,7 @@ interface OutputsComponentProps {
9191
const OutputsComponent: React.FC<OutputsComponentProps> = ({ text, value }) => {
9292
if (value) {
9393
return (
94-
<div>
94+
<div className="mt-4">
9595
<b className="dark:text-gray-100">{text}:</b>
9696
<div
9797
className={'h-auto p-4 mt-2 w-full bg-gray-800 rounded-lg text-white'}

0 commit comments

Comments
 (0)