Skip to content

Commit

Permalink
front: display rs name instead of rs reference in StdcmReportSheet
Browse files Browse the repository at this point in the history
Signed-off-by: Clara Ni <clara.ni@outlook.fr>
  • Loading branch information
clarani committed Jan 3, 2025
1 parent 2d1a142 commit 7340ba3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ const SimulationReportSheet = ({
const convoyLength = consist?.totalLength ?? rollingStock.length;
const convoyMaxSpeed = consist?.maxSpeed ?? msToKmh(rollingStock.max_speed);

console.log(rollingStock);

// TODO: Add RC information when it becomes avalaible, until that, we use fake ones
const fakeInformation = {
rcName: 'Super Fret',
Expand Down Expand Up @@ -152,9 +154,7 @@ const SimulationReportSheet = ({
{`${Math.floor(convoyMass)} t`}
</Text>
<Text style={styles.convoyAndRoute.convoyInfoTitles}>{t('referenceEngine')}</Text>
<Text style={styles.convoyAndRoute.convoyInfoData}>
{rollingStock.metadata?.reference || '-'}
</Text>
<Text style={styles.convoyAndRoute.convoyInfoData}>{rollingStock.name}</Text>
<Text style={styles.convoyAndRoute.convoyInfoTitles}>{t('maxLength')}</Text>
<Text style={styles.convoyAndRoute.convoyInfoData}>{`${convoyLength} m`}</Text>
</View>
Expand Down

0 comments on commit 7340ba3

Please sign in to comment.