mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Don't display DetectedTokenSelectionPopover if there are no detected tokens (#15877)
* Don't display DetectedTokenSelectionPopover if there are no detected tokens * adding length greater than 0 check as a 0 is displayed at the end of teh page previously Co-authored-by: Niranjana Binoy <43930900+NiranjanaBinoy@users.noreply.github.com> Co-authored-by: ryanml <ryanlanese@gmail.com>
This commit is contained in:
parent
5c41ff0aa1
commit
e6017ee2a4
@ -155,15 +155,17 @@ const DetectedToken = ({ setShowDetectedTokens }) => {
|
|||||||
partiallyIgnoreDetectedTokens={partiallyIgnoreDetectedTokens}
|
partiallyIgnoreDetectedTokens={partiallyIgnoreDetectedTokens}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<DetectedTokenSelectionPopover
|
{detectedTokens.length > 0 && (
|
||||||
detectedTokens={detectedTokens}
|
<DetectedTokenSelectionPopover
|
||||||
tokensListDetected={tokensListDetected}
|
detectedTokens={detectedTokens}
|
||||||
handleTokenSelection={handleTokenSelection}
|
tokensListDetected={tokensListDetected}
|
||||||
onImport={onImport}
|
handleTokenSelection={handleTokenSelection}
|
||||||
onIgnoreAll={onIgnoreAll}
|
onImport={onImport}
|
||||||
setShowDetectedTokens={setShowDetectedTokens}
|
onIgnoreAll={onIgnoreAll}
|
||||||
sortingBasedOnTokenSelection={sortingBasedOnTokenSelection}
|
setShowDetectedTokens={setShowDetectedTokens}
|
||||||
/>
|
sortingBasedOnTokenSelection={sortingBasedOnTokenSelection}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user