Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 587293e

Browse files
committed
fix(comments): add auth warning for reply comment
1 parent e0ad5b5 commit 587293e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

containers/Comments/logic.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ export const openUpdateEditor = data =>
161161
})
162162

163163
export const openReplyEditor = data => {
164-
initDraftTimmer()
164+
if (!store.isLogin) return store.authWarning()
165165

166+
initDraftTimmer()
166167
store.markState({
167168
showReplyBox: true,
168169
showReplyEditor: true,

0 commit comments

Comments
 (0)