Skip to content

Commit

Permalink
Fix visual bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cau777 committed Sep 23, 2022
1 parent 851e115 commit 0603f09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/components/home/SnippetPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ const SnippetPost: FC<Props> = (props) => {
.select("target, author")
.match({target: props.id})
.match({author: context.id});

if (result.error) {
setError(result.error.message);
return;
}

hasLikedResult = result.body !== null && result.body.length !== 0;
}

const likesCountResult = await fromTable(supabase, "Likes")
.select("target")
.match({target: props.id});

if (likesCountResult.error) {
setError(likesCountResult.error.message);
return;
Expand All @@ -67,7 +67,7 @@ const SnippetPost: FC<Props> = (props) => {
useAsyncEffect(updateLikeState, [context.loggedIn]);

async function like() {
if (!likeState || !context.loggedIn){
if (!likeState || !context.loggedIn) {
setError(t("errorLikeLogin"));
return;
}
Expand Down Expand Up @@ -141,9 +141,9 @@ const SnippetPost: FC<Props> = (props) => {
</div>
</footer>

<hr className={"my-3"}/>

<section>
<hr className={"my-3 hide-one-child"}/>
<SnippetComments postId={props.id} limit={props.compact ? 5 : undefined}></SnippetComments>
</section>
</Card>
Expand Down

0 comments on commit 0603f09

Please sign in to comment.