diff --git a/services/web/frontend/js/shared/context/editor-context.tsx b/services/web/frontend/js/shared/context/editor-context.tsx index 9d414a0fef..c9fc23440b 100644 --- a/services/web/frontend/js/shared/context/editor-context.tsx +++ b/services/web/frontend/js/shared/context/editor-context.tsx @@ -105,7 +105,7 @@ export const EditorProvider: FC = ({ children }) => { ) const [premiumSuggestionResetDate, setPremiumSuggestionResetDate] = useState(() => { - return featureUsage?.aiErrorAssistant.resetDate + return featureUsage?.aiErrorAssistant?.resetDate ? new Date(featureUsage.aiErrorAssistant.resetDate) : new Date() })