fix: table warning message

This commit is contained in:
NunoSempere 2022-06-19 20:18:58 -04:00
parent 661120709a
commit 77ec147fe8

View File

@ -117,11 +117,10 @@ export function ResultsTable({ isListOrdered, listAfterMergeSort, links }) {
} }
}, [isListOrdered, listAfterMergeSort, links]); }, [isListOrdered, listAfterMergeSort, links]);
return ( return !(isListOrdered && isTableComputed) ? (
<div>
{!(isListOrdered && isTableComputed) ? (
"" ""
) : ( ) : (
<div>
<div> <div>
<Separator /> <Separator />
<div className="relative overflow-x-auto shadow-md sm:rounded-lg mt-10"> <div className="relative overflow-x-auto shadow-md sm:rounded-lg mt-10">
@ -152,7 +151,6 @@ export function ResultsTable({ isListOrdered, listAfterMergeSort, links }) {
</table> </table>
</div> </div>
</div> </div>
)}
<div className="grid w-full place-items-center text-center "> <div className="grid w-full place-items-center text-center ">
<p className="mt-8 max-w-5xl"> <p className="mt-8 max-w-5xl">
*This is the geometric mean if all elements are either all positive or *This is the geometric mean if all elements are either all positive or