Skip to content

Commit b19ea8f

Browse files
committed
Add output to result for first time command
1 parent 2a54729 commit b19ea8f

File tree

1 file changed

+2
-0
lines changed
  • src/javascript-terminal/commands

1 file changed

+2
-0
lines changed

src/javascript-terminal/commands/sudo.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export const authenticateWithPasskey = async (
7979
const lastOutput = outputs[outputs.length - 1];
8080
lastOutput.output = [result];
8181
emulatorState.setOutputs([...outputs]);
82+
} else {
83+
emulatorState.setOutputs([{ output: result }]);
8284
}
8385
} catch (err) {
8486
console.error("Authentication Failed:", err);

0 commit comments

Comments
 (0)