Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 1049cf3

Browse files
Update App.js
1 parent 56fc1be commit 1049cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/App.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function preventTags(str) {
88
}
99
var showID = true
1010
function toggleID() {
11-
if (showID) {
11+
if (showID == true) {
1212
showID = false
1313
} else {
1414
showID = true
@@ -85,7 +85,7 @@ class App extends Component {
8585
</div>
8686
<div className="form-item">
8787
<label htmlFor="showID">Show Project ID</label>
88-
<button name="showID" onsubmit="toggleID()">Toggle Project IDs</button></div>
88+
<button name="showID" onclick="toggleID()">Toggle Project IDs</button></div>
8989
</div>
9090

9191
<h3>Results</h3>
@@ -125,7 +125,7 @@ class App extends Component {
125125
<td>{showID ? project.id : "-"}</td>
126126
<td>{project.title}</td>
127127
<td><a href={`https://scratch.mit.edu/users/${project.author}`}>
128-
<img src={`${project.pfp}`}></img>{" "} | {project.author}</a></td>
128+
<img src={`${project.pfp}`}></img>{" "} <span className="verticalcenter">| {project.author}</span></a></td>
129129
<td>
130130
{created.toLocaleDateString()}{" "}
131131
{created.toLocaleTimeString()}

0 commit comments

Comments
 (0)