Skip to content

Commit

Permalink
fix: showUpload fallback values
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Jan 15, 2025
1 parent 0a8b20c commit ffc3c4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ const MemoriWidget = ({
showTypingText = false,
showClear = false,
showLogin = false,
showUpload = false,
showUpload,
showOnlyLastMessages,
height = '100vh',
secret,
Expand Down Expand Up @@ -2432,7 +2432,7 @@ const MemoriWidget = ({
? true
: integrationConfig?.showAIicon;

const enableUpload = showUpload || !!integrationConfig?.showUpload;
const enableUpload = !!(showUpload ?? integrationConfig?.showUpload);

const showWhyThisAnswer =
integrationConfig?.showWhyThisAnswer === undefined
Expand Down

0 comments on commit ffc3c4e

Please sign in to comment.