Skip to content

Commit 4cced3e

Browse files
committed
fix: use trunc
1 parent 990a128 commit 4cced3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/compass-indexes/src/components/regular-indexes-table/regular-index-actions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const IndexActions: React.FunctionComponent<IndexActionsProps> = ({
109109
if (buildProgress > 0 && buildProgress < 1) {
110110
return (
111111
<div className={buildProgressStyles} data-testid="index-building-spinner">
112-
<Body>Building... {(buildProgress * 100) | 0}%</Body>
112+
<Body>Building... {Math.trunc(buildProgress * 100)}%</Body>
113113
<SpinLoader size={16} title="Index build in progress" />
114114
<ItemActionGroup<IndexAction>
115115
data-testid="index-actions"

0 commit comments

Comments
 (0)