Skip to content

Commit

Permalink
symmetric-input-output: Do not change input if returning undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 6, 2024
1 parent c8ef839 commit d130f95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/components/symmetric-input-output.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
inputLog = "";
if (value) {
({ output: inputText, log: outputLog } = handleErrors(from, value));
const result = handleErrors(from, value);
if (result.output) {
({ output: inputText, log: outputLog } = result);
}
} else {
inputText = "";
outputLog = "";
Expand Down

0 comments on commit d130f95

Please sign in to comment.