Skip to content

Commit 9e18699

Browse files
committed
Showing other users post lists works.
1 parent 4dbcc5e commit 9e18699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/NewPost.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ export default function NewPost(state) {
1313
<button class=post>Post</button>
1414
</section>
1515
</article>
16-
` : R`<h1>posts</h1>`
16+
` : R`<h1>${state.currentFeed}'s posts</h1>`
1717
}`;
1818
}
1919

2020
function showNewPost(state) {
21-
if ( ! state.currentFeed || state.currentFeed == ':me' || state.currentFeed == ':feed' || state.currentFeed == state.name ) {
21+
if ( ! state.currentFeed || state.currentFeed == ':feed' || state.currentFeed == state.name ) {
2222
return true;
2323
} else return false;
2424
}

0 commit comments

Comments
 (0)