ConnectPlus-Org / ConnectPlus-Org/ConnectPlus-Frontend

The carousel shows 2 images while there are only 1.

Open
#16 1 comment 0 reactions 1 assignee Claimed by @Icarus-05 View on GitHub
bug good first issue hacktoberfest
Dominant language
TypeScript
Stars
9
Forks
25
PR merge metrics
No merged PRs in 30d

Description

This is Due to the Video tag in the carousel in case there is a video in the post. But if there is no video then it is shown as a Black image for no reason despite it being set as null or undefined in the code.

![image](https://github.com/ConnectPlus-Org/ConnectPlus-Frontend/assets/66951703/cc9ee5a1-e329-42fa-98c3-55948f4f03b7)

This is what it looks like.

![image](https://github.com/ConnectPlus-Org/ConnectPlus-Frontend/assets/66951703/aa5c84fc-601b-43f9-96b3-4cd30619c9fa)

As you can see, there is no file on the 2nd image of the carousel. It exists due to the conditionally rendered video tag in the code on the filepath :- src/homepage/Post.tsx :-

![image](https://github.com/ConnectPlus-Org/ConnectPlus-Frontend/assets/66951703/b221e5b1-eb70-4502-b9ef-726b87e36912)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.