We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be173fe commit f8ffadbCopy full SHA for f8ffadb
src/components/viewer/OperationViewer.tsx
@@ -118,7 +118,6 @@ export const OperationViewer: ComponentType<{
118
const levels = useLevels()?.data?.data || []
119
120
const [auth] = useAtom(authAtom)
121
- const authed = !!auth.token
122
123
// make eslint happy: we got Suspense out there
124
if (!operation) return null
@@ -174,14 +173,6 @@ export const OperationViewer: ComponentType<{
174
173
}
175
176
const handleRating = async (decision: OpRatingType) => {
177
- if (!authed) {
178
- AppToaster.show({
179
- message: '请先登录',
180
- intent: 'warning',
181
- })
182
- return
183
- }
184
-
185
// cancel rating if already rated by the same type
186
if (decision === operation.ratingType) {
187
decision = OpRatingType.None
0 commit comments