r-spacex / spacexstats-react

SpaceXStats, with React and using the SpaceX API

Home Page:https://www.spacexstats.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flight stats incorrect for reused dragon capsules in commercial crew section

MMeent opened this issue · comments

https://github.com/r-spacex/spacexstats-react/blob/master/src/components/blocks/Dragon/charts/commercialCrewFlights.ts#L34 incorrectly assumes that flight time of the payload.dragon is invalid when payload.reused is set, and thus defaults to 0.
I think that that is incorrect.

Currently, this means that flights with reused capsules are displayed as if they had 0 flight time, which is obviously incorrect.

Good catch, this has been fixed since then!