diff --git a/packages/fps-importer/index.ts b/packages/fps-importer/index.ts index 640ff540..2efe61d9 100644 --- a/packages/fps-importer/index.ts +++ b/packages/fps-importer/index.ts @@ -62,7 +62,7 @@ class FpsProblemImportHandler extends Handler { time: p.time_limit[0]._ + p.time_limit[0].$.unit, memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit, }; - if (p.remote_oj) { + if (p.remote_oj?.[0]) { config.type = ProblemType.Remote; config.subType = knownRemoteMapping[p.remote_oj[0]] || p.remote_oj[0]; config.target = p.remote_id[0];