Spaces:
Running
Running
Commit ·
70cfb15
1
Parent(s): 9ea3b5e
commit 021111111
Browse files- src/App.js +4 -2
src/App.js
CHANGED
|
@@ -51,11 +51,13 @@ export default function App() {
|
|
| 51 |
};
|
| 52 |
|
| 53 |
const handleExplain = () => {
|
| 54 |
-
if (lastCode) handleSend(`Explain this code:\n\n${lastCode}`);
|
|
|
|
| 55 |
};
|
| 56 |
|
| 57 |
const handleFixBug = () => {
|
| 58 |
-
|
|
|
|
| 59 |
};
|
| 60 |
|
| 61 |
const handleStackOverflow = () => {
|
|
|
|
| 51 |
};
|
| 52 |
|
| 53 |
const handleExplain = () => {
|
| 54 |
+
//if (lastCode) handleSend(`Explain this code:\n\n${lastCode}`);
|
| 55 |
+
if (lastCode) handleSend("Explain this code");
|
| 56 |
};
|
| 57 |
|
| 58 |
const handleFixBug = () => {
|
| 59 |
+
// if (lastCode) handleSend(`Fix the bug in this code and explain:\n\n${lastCode}`);
|
| 60 |
+
if (lastCode) handleSend("Fix the bug in this code and explain");
|
| 61 |
};
|
| 62 |
|
| 63 |
const handleStackOverflow = () => {
|