mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #21597 from overleaf/ar-fix-error-assistant-error-in-e2e-tests
[web] Make sure aiErrorAssistant exists before using GitOrigin-RevId: 31a4a6a2aa152aee6620c8e44e44dea3c6bf3b44
This commit is contained in:
parent
80b3ad255d
commit
22d3e4bc13
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ export const EditorProvider: FC = ({ children }) => {
|
||||||
)
|
)
|
||||||
const [premiumSuggestionResetDate, setPremiumSuggestionResetDate] =
|
const [premiumSuggestionResetDate, setPremiumSuggestionResetDate] =
|
||||||
useState<Date>(() => {
|
useState<Date>(() => {
|
||||||
return featureUsage?.aiErrorAssistant.resetDate
|
return featureUsage?.aiErrorAssistant?.resetDate
|
||||||
? new Date(featureUsage.aiErrorAssistant.resetDate)
|
? new Date(featureUsage.aiErrorAssistant.resetDate)
|
||||||
: new Date()
|
: new Date()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue