Skip to content

Commit

Permalink
Update WidgetSpinner.vue
Browse files Browse the repository at this point in the history
edit following lint
  • Loading branch information
pernucia committed Nov 20, 2024
1 parent 7c7f3aa commit 36256a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/widgets/WidgetSpinner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const rotation = () => {
deg.value = 0;
}
let index = Math.round(Math.random());
let value = widgetProps.fullThrottle ? 360 : (Math.floor(Math.random()*12)+1)*30
deg.value = index == 0 ? deg.value + value : deg.value - value
let value = widgetProps.fullThrottle ? 360 : (Math.floor(Math.random() * 12) + 1) * 30;
deg.value = index === 0 ? deg.value + value : deg.value - value;
widgetProps.degree = deg.value;
};

Expand Down

0 comments on commit 36256a0

Please sign in to comment.