Skip to content

Commit 95424e8

Browse files
author
Patrick Knabe
committed
Hiding dot, when no decimal place is configured
1 parent cea3b86 commit 95424e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = RED => {
9191
}
9292
} );
9393

94-
if( idx === $scope.digits - $scope.decimals - 1 ) {
94+
if( $scope.decimals > 0 && idx === $scope.digits - $scope.decimals - 1 ) {
9595
$( digit ).find( 'path:last-child' ).css( 'fill', 'var( --nr-dashboard-pageTitlebarBackgroundColor )' );
9696
} else {
9797
$( digit ).find( 'path:last-child' ).css( 'fill', 'var( --nr-dashboard-groupBackgroundColor )' );

0 commit comments

Comments
 (0)