feat: add check for getText === true

This commit is contained in:
karishmas6
2024-07-26 02:23:32 +05:30
parent 6ce28cb8b7
commit 0956a1df2a

View File

@@ -109,7 +109,7 @@ export const BrowserWindow = () => {
</GenericModal>
) : null
}
{(getText && !showConfirmation && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?
{(getText === true && !showConfirmation && highlighterData?.rect != null && highlighterData?.rect.top != null) && canvasRef?.current ?
<Highlighter
unmodifiedRect={highlighterData?.rect}
displayedSelector={highlighterData?.selector}