mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-31 12:00:10 +08:00
Merge pull request #1013 from othrayte/fix-broken-rank-without-change-workflow
website: Fix regression in accepting initial rankings
This commit is contained in:
@@ -74,7 +74,7 @@ export const Task = () => {
|
||||
): TaskStatus => {
|
||||
switch (event.action) {
|
||||
case "NEW_TASK":
|
||||
return { mode: "EDIT", replyValidity: "INVALID" };
|
||||
return status.mode !== "EDIT" ? { mode: "EDIT", replyValidity: "INVALID" } : status;
|
||||
case "UPDATE_VALIDITY":
|
||||
return status.mode === "EDIT" ? { mode: "EDIT", replyValidity: event.replyValidity } : status;
|
||||
case "ACCEPT_DEFAULT":
|
||||
|
||||
Reference in New Issue
Block a user