🐛 (typebot) Attempt to fix updatedAt comparison with different timezones
Closes #327
This commit is contained in:
@ -156,8 +156,8 @@ export const TypebotProvider = ({
|
||||
setLocalTypebot({ ...typebot }, { updateDate: false })
|
||||
flush()
|
||||
} else if (
|
||||
new Date(typebot.updatedAt) >
|
||||
new Date(currentTypebotRef.current.updatedAt)
|
||||
new Date(typebot.updatedAt).getTime() >
|
||||
new Date(currentTypebotRef.current.updatedAt).getTime()
|
||||
) {
|
||||
setLocalTypebot({ ...typebot })
|
||||
}
|
||||
|
Reference in New Issue
Block a user