From 9c37aaa70af6d051d8b1dc7239b1a1228709ecc1 Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Tue, 5 Nov 2024 10:59:56 -0300 Subject: [PATCH] lint --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index cee8e69..585644f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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