Skip to content

Commit 5cdd66f

Browse files
authored
style(app): Change "{time} ms" to "{time}ms" (#16312)
1 parent 27f3b2c commit 5cdd66f

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/sentry/static/sentry/app/components/duration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function getDuration(
4343

4444
const {label} = roundWithFixed(value, fixedDigits);
4545

46-
return `${label} ms`;
46+
return `${label}ms`;
4747
}
4848

4949
type Props = React.HTMLProps<HTMLSpanElement> & {

src/sentry/static/sentry/app/components/events/interfaces/spans/spanDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class SpanDetail extends React.Component<Props, State> {
218218
const endTimestamp: number = span.timestamp;
219219

220220
const duration = (endTimestamp - startTimestamp) * 1000;
221-
const durationString = `${duration.toFixed(3)} ms`;
221+
const durationString = `${duration.toFixed(3)}ms`;
222222

223223
if (isGapSpan(span)) {
224224
return null;

src/sentry/static/sentry/app/views/discover/result/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class Result extends React.Component<ResultProps, ResultState> {
167167
`query time: ${getDynamicText({
168168
value: summaryData.timing.duration_ms,
169169
fixed: '10',
170-
})} ms`,
170+
})}ms`,
171171
];
172172
if (this.state.view === 'table') {
173173
summary.push(getRowsPageRange(baseQuery));

tests/js/spec/views/discover/result/index.spec.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('Result', function() {
7878
.find('ResultSummary')
7979
.render()
8080
.text()
81-
).toEqual('query time: 15 ms, rows 1 - 10');
81+
).toEqual('query time: 15ms, rows 1 - 10');
8282
});
8383

8484
it('shows correct number of results shown when going to next page (next page function mocked on click)', async function() {
@@ -113,7 +113,7 @@ describe('Result', function() {
113113
.find('ResultSummary')
114114
.render()
115115
.text()
116-
).toBe('query time: 15 ms, rows 11 - 20');
116+
).toBe('query time: 15ms, rows 11 - 20');
117117
});
118118

119119
it('shows 0 Results with no data', async function() {
@@ -143,7 +143,7 @@ describe('Result', function() {
143143
.find('ResultSummary')
144144
.render()
145145
.text()
146-
).toBe('query time: 15 ms, 0 rows');
146+
).toBe('query time: 15ms, 0 rows');
147147
});
148148
});
149149

0 commit comments

Comments
 (0)