Skip to content

Commit

Permalink
fix: delay button had a + sign in from nomatter if it was positive og…
Browse files Browse the repository at this point in the history
… negative
  • Loading branch information
olzzon committed Mar 18, 2021
1 parent c71672e commit 3aa404a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/components/ChanStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class ChanStrip extends React.PureComponent<
<React.Fragment>
{this.fxParamFader(fxParamsList.DelayTime)}
<div className="delayButtons">
{DEL_VALUES.map((value: number) => {
{DEL_VALUES.map((value: number) => {
return (
<button
className="delayTime"
Expand All @@ -214,7 +214,8 @@ class ChanStrip extends React.PureComponent<
)
}}
>
+{value}ms
{value > 0 ? '+' : ''}
{value}ms
</button>
)
})}
Expand Down
3 changes: 2 additions & 1 deletion client/components/ChanStripFull.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,8 @@ class ChanStripFull extends React.PureComponent<
)
}}
>
+{value}ms
{value > 0 ? '+' : ''}
{value}ms
</button>
)
})}
Expand Down

0 comments on commit 3aa404a

Please sign in to comment.