Skip to content

Commit 869a31c

Browse files
committed
type="button"
1 parent 32d5b25 commit 869a31c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

TechStacks.Client/src/components/posts/PostsList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export function PostsList({ posts }: PostsListProps) {
124124
<div className="flex gap-4">
125125
{/* Voting */}
126126
<div className="flex flex-col items-center space-y-1 text-gray-500">
127-
<button
127+
<button type="button"
128128
onClick={(e) => handleVote(postId, 1, e)}
129129
className={`text-2xl transition-colors ${
130130
isUpVoted
@@ -136,7 +136,7 @@ export function PostsList({ posts }: PostsListProps) {
136136
137137
</button>
138138
<span className="font-semibold text-xl">{displayPoints}</span>
139-
<button
139+
<button type="button"
140140
onClick={(e) => handleVote(postId, -1, e)}
141141
className={`text-2xl transition-colors ${
142142
isDownVoted

0 commit comments

Comments
 (0)