Skip to content

Commit

Permalink
Refactoring bug fixes (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Andreou <[email protected]>
  • Loading branch information
SteveAndreou and Steve Andreou authored Oct 19, 2020
1 parent 785021c commit 466c355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/command.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ export function handleCommand(message: string,
label: realContent,
done: false,
colorName: '',
colorStyle: null
colorStyle: null,
fade: false
};

// option: add newones to the top
Expand All @@ -261,7 +262,8 @@ export function handleCommand(message: string,
label: message,
done: false,
colorName: '',
colorStyle: null
colorStyle: null,
fade: false
};

// option: add newones to the top
Expand Down
4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export function numberOrDefault(value: number | string, defaultNumber: number) {

export function fillDefaults(currentOptions: QueryOptions): QueryOptions {
const sanitizedOptions: QueryOptions = {
...currentOptions,
scrollingInterval: numberOrDefault(currentOptions.scrollingInterval, 5000),
scrollingDuration: numberOrDefault(currentOptions.scrollingDuration, 2000),
layout: 'full'
layout: 'full',
...currentOptions
};


Expand Down

0 comments on commit 466c355

Please sign in to comment.