Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
igoroctaviano committed Nov 5, 2024
1 parent d97544a commit 9c37aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ const originalMessage = { ...message }

const createMessageConfig = (content: string | object): object => {
const duration = config.messages?.duration ?? 5

if (typeof content === 'object' && content !== null) {
return {
...content,
duration
}
}

return {
content,
duration
Expand Down

0 comments on commit 9c37aaa

Please sign in to comment.