Skip to content

Commit c2c39ca

Browse files
authored
Feat: Fix comment cell navigation error by deleting default blog id (#92)
1 parent 7d75bb7 commit c2c39ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Wastory/Wastory/View/ContentView/CommentView/CommentCell.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct CommentCell: View {
4646

4747
VStack(alignment: .leading, spacing: 0) {
4848
HStack(spacing: 5) {
49-
NavigateToBlogViewButton(tempBlog().id) {
49+
NavigateToBlogViewButton(comment.blogID) {
5050
Text(comment.userName)
5151
.font(.system(size: 14, weight: .semibold))
5252
.foregroundStyle(Color.primaryLabelColor)
@@ -113,7 +113,7 @@ struct CommentCell: View {
113113

114114
VStack(alignment: .leading, spacing: 0) {
115115
HStack(spacing: 5) {
116-
NavigateToBlogViewButton(tempBlog().id) {
116+
NavigateToBlogViewButton(comment.blogID) {
117117
Text(comment.userName)
118118
.font(.system(size: 14, weight: .semibold))
119119
.foregroundStyle(Color.primaryLabelColor)

0 commit comments

Comments
 (0)