Skip to content

Commit

Permalink
handling the case when no solution can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgurakgun committed Oct 17, 2023
1 parent 66af3b3 commit 4dd8a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function OutputPage() {
}

// output failed state
if (currentOutput.status !== "ok") {
if (currentOutput.status !== "ok" || !currentOutput.solution) {
return (
<PageLayout>
<div className={"flex justify-center"}>
Expand Down

0 comments on commit 4dd8a0d

Please sign in to comment.