mirror of
https://github.com/thepeacockproject/Peacock
synced 2025-02-23 03:35:25 +01:00
Fix a nullibility issue in previous pr (#76)
This commit is contained in:
parent
3adb4b1f67
commit
95b71b79e7
@ -329,12 +329,14 @@ function getContractOpportunityData(
|
||||
false,
|
||||
)
|
||||
|
||||
for (const ms of contract.Metadata.Opportunities) {
|
||||
missionStories[ms].PreviouslyCompleted =
|
||||
ms in userData.Extensions.opportunityprogression
|
||||
const current = fastClone(missionStories[ms])
|
||||
delete current.Location
|
||||
result.push(current)
|
||||
if (contract.Metadata.Opportunities) {
|
||||
for (const ms of contract.Metadata.Opportunities) {
|
||||
missionStories[ms].PreviouslyCompleted =
|
||||
ms in userData.Extensions.opportunityprogression
|
||||
const current = fastClone(missionStories[ms])
|
||||
delete current.Location
|
||||
result.push(current)
|
||||
}
|
||||
}
|
||||
|
||||
return result
|
||||
|
Loading…
x
Reference in New Issue
Block a user