Skip to content

Commit

Permalink
FIX a bug with animations not being stringify-able
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Mar 4, 2019
1 parent caa78fb commit 1c27092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/theming/src/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const create = (vars: ThemeVars = { base: 'light' }, rest?: Rest): Theme

// Toolbar default/active colors
barTextColor: inherit.barTextColor,
barSelectedColor: inherit.barSelectedColor,
barSelectedColor: vars.barSelectedColor || inherit.colorSecondary,
barBg: inherit.barBg,

// Brand logo/text
Expand Down
3 changes: 2 additions & 1 deletion lib/theming/src/ensure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const ensure = (input: any): Theme => {
if (!input) {
return light;
} else {
// debugger;
const missing = deletedDiff(base, input);
if (Object.keys(missing).length) {
logger.warn(
Expand All @@ -50,6 +51,6 @@ export const ensure = (input: any): Theme => {
);
}

return merge(light, input);
return merge(light, { ...input, animation: light.animation });
}
};

1 comment on commit 1c27092

@vercel
Copy link

@vercel vercel bot commented on 1c27092 Mar 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Builds rate limit exceeded (0 of 100 remaining). Try again in 21h

Please sign in to comment.