Skip to content

Commit a3bcb12

Browse files
committed
fix: swap matched user and user on frontend for specific submission
1 parent 1ae0f5b commit a3bcb12

File tree

1 file changed

+3
-6
lines changed
  • apps/frontend/src/app/question/[id]

1 file changed

+3
-6
lines changed

apps/frontend/src/app/question/[id]/page.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ export default function QuestionPage() {
122122
setSubmission({
123123
submittedAt: submittedAt.toLocaleString("en-US"),
124124
language: data.language,
125-
matchedUser: data.matchedUser,
125+
matchedUser:
126+
username == data.matchedUser ? data.User : data.matchedUser,
126127
code: data.code,
127128
historyDocRefId: data.historyDocRefId,
128129
});
@@ -141,11 +142,6 @@ export default function QuestionPage() {
141142
}, [currentSubmissionId]);
142143

143144
const columns = [
144-
{
145-
title: "ID",
146-
dataIndex: "id",
147-
key: "id",
148-
},
149145
{
150146
title: "Submitted at",
151147
dataIndex: "createdAt",
@@ -206,6 +202,7 @@ export default function QuestionPage() {
206202
style: { cursor: "pointer" },
207203
};
208204
}}
205+
scroll={{ y: "max-content" }}
209206
loading={isHistoryLoading}
210207
/>
211208
</div>

0 commit comments

Comments
 (0)