mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix display
This commit is contained in:
1 parent
1d72362d49
commit
fb102780aa
5 files changed
+5
-5
No files matched your search
@@ -15,7 +15,7 @@ export default function reducer(state = {
|
||||
if (action.type === 'SCRATCHPAD_RECORDS_PUSH') {
|
||||
const { rdoc } = action.payload;
|
||||
if (rdoc._id === state.rid) {
|
||||
const output = [`${STATUS_TEXTS[rdoc.status]} ${rdoc.time}ms ${rdoc.memory}MiB`];
|
||||
const output = [`${STATUS_TEXTS[rdoc.status]} ${rdoc.time}ms ${rdoc.memory}KiB`];
|
||||
if (rdoc.compilerTexts.length) output.push(rdoc.compilerTexts.join('\n'));
|
||||
if (rdoc.testCases.length) output.push(rdoc.testCases[0].message || '');
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user