Skip to content

Commit

Permalink
Don't send missions data to Inara when the origin system is null / em…
Browse files Browse the repository at this point in the history
…pty.

Resolve Rollbar# 26372.
  • Loading branch information
Tkael committed Aug 10, 2024
1 parent 0ca3b68 commit a6b26a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions InaraResponder/InaraResponder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,11 @@ private void handleMissionAcceptedEvent(MissionAcceptedEvent @event)
{
eventData.Add( "starsystemNameOrigin", @event.Mission.originsystem );
}
else
{
// `starsystemNameOrigin` is a required property to submit this data to Inara
return;
}
if ( !string.IsNullOrEmpty(@event.Mission.originstation))
{
eventData.Add("stationNameOrigin", @event.Mission.originstation);
Expand Down

0 comments on commit a6b26a1

Please sign in to comment.