Skip to content

Commit

Permalink
Merge branch 'hotfix/r-544' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillermo Angeles committed Oct 24, 2023
2 parents d444e60 + 6b44ce0 commit 30e9b0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/components/Avatar/Avatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export default {

export const Default = {
args: {
name: 'Test'
name: 'Test',
style: {}
},
play: async ({canvasElement}: any) =>{
const canvas = within(canvasElement);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const Avatar = (props: Props) =>{
{props.icon ?
<Icon src={props.icon}/>
: props.name ?
<Text style={{fontSize: props.style?.fontSize ? props.style.fontSize : 24, fontWeight: 600}}>
<Text style={{color: props.style?.color ? props.style?.color : Color.text.primary, fontSize: props.style?.fontSize ? props.style.fontSize : 24, fontWeight: 600}}>
{props.name.substring(0,1).toLocaleUpperCase()}
</Text>
:null}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Counter/Counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function Counter(props: Props) {

useEffect(() => {
clearTimer();
setCounter(props.amount > 0 ? props.amount-10 : 0)
setCounter(props.amount > 0 ? props.amount-(props.amount >= 10 ? 10 : props.amount) : 0)
countdownRef.current = window.setInterval(tick, 400);
return () => clearTimer();
}, [props.amount]);
Expand Down

0 comments on commit 30e9b0e

Please sign in to comment.