From c18b81b2f26123481558cb3fffc794c2c13f74ad Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Thu, 8 Feb 2024 15:43:45 -0700
Subject: maintenance

---
 src/components/function_box.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/components/function_box.tsx')

diff --git a/src/components/function_box.tsx b/src/components/function_box.tsx
index 3c65062..e046d63 100644
--- a/src/components/function_box.tsx
+++ b/src/components/function_box.tsx
@@ -253,11 +253,9 @@ export class FunctionBox extends Node {
   }
 
   public *propogateOutput(duration: number) {
-    const opacityChangeDuration = 0.1;
-
     const output = this.function(...this.currentArgs.map((input) => input.val));
     if (typeof output === "function") {
-      yield this.output().add(
+      this.output().add(
         <FunctionBox
           opacity={0}
           isChild={true}
@@ -266,15 +264,16 @@ export class FunctionBox extends Node {
         ></FunctionBox>,
       );
     } else {
-      yield this.output().add(
+      this.output().add(
         <Txt fontFamily={theme.font} fontSize={30} fill={theme.text.hex}>
           {output.toString()}
         </Txt>,
       );
     }
 
+    yield* this.boxMoji().text(this.idlingText, duration);
+
     yield* all(
-      this.boxMoji().text(this.idlingText, duration),
       this.outputSegment().points(
         [
           { x: -this.delta, y: 0 },
-- 
cgit v1.2.3-70-g09d2

