Skip to content

Commit

Permalink
bug relating to font on station page sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGordon83 committed Jul 7, 2023
1 parent 070e73a commit 2e6ed43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions server/models/views/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,16 +421,14 @@ function telemetryForecastBuilder (telemetryRawData, forecastRawData, stationTyp
})
}

const telemetryData = {
return {
type: stationTypeCalculator(stationType).toLowerCase(),
latestDateTime: telemetryRawData[0].ts,
dataStartDateTime: moment(telemetryRawData[0].ts).subtract(5, 'days').toISOString().replace(/.\d+Z$/g, 'Z'),
dataEndDateTime: moment().toISOString().replace(/.\d+Z$/g, 'Z'),
observed: observed,
forecast: forecastData
}

return telemetryData
}

module.exports = ViewModel
2 changes: 1 addition & 1 deletion server/views/station.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2 class="govuk-heading-s govuk-!-margin-top-4 govuk-!-margin-bottom-4">Height
<span class="defra-flood-status-item__icon">
<svg focusable="false" aria-hidden="true" width="18" height="18" viewBox="0 0 18 18" style="fill-rule:evenodd;clip-rule:evenodd">
<circle cx="9" cy="9" r="7.5" style="fill:none;stroke:currentColor;stroke-width:1px;"></circle>
<text x="4.687px" y="12.906px" fill="currentColor" style="font-family:'Courier-Bold', 'Courier', 'sans-serif';font-size:14px;">i</text>
<text x="4.687px" y="12.906px" fill="currentColor" style="font-family:'Courier-Bold', 'Courier', sans-serif;font-size:14px;">i</text>
</svg>
</span>
<div class="defra-flood-status-item__text">
Expand Down

0 comments on commit 2e6ed43

Please sign in to comment.