Show retry button when generation is cancelled

This commit is contained in:
Mihovil Ilakovac 2023-07-04 14:50:55 +02:00
parent 92b9fddfc0
commit b3362a43ab

View File

@ -89,7 +89,7 @@ export function Logs({ logs, status, onRetry }) {
>
{getEmoji(log) + " "}
{log}{" "}
{i === 0 && status === "error" && (
{i === 0 && (status === "error" || status === "cancelled") && (
<button onClick={onRetry} className="button gray xs">
Retry
</button>