Skip to content

Commit

Permalink
CR: update
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss committed Apr 2, 2023
1 parent 3640033 commit 75c12c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Nfts/Nfts.tsx
Expand Up @@ -30,6 +30,7 @@ export const Nfts = () => {

const handleNftSelect = (index: number) => navigateTo.nftDetails(nftsSearchResult[index].id)
const hasEmptySearchResult = nftsSearchTerm.length > 0 && nftsSearchResult.length === 0
const hasNotNfts = nftsSearchTerm.length === 0 && nftsSearchResult.length === 0

const onRefresh = React.useCallback(() => {
setIsManualRefreshing(true)
Expand Down Expand Up @@ -66,7 +67,7 @@ export const Nfts = () => {
)
}

if (nftsSearchTerm.length === 0 && nftsSearchResult.length === 0) {
if (hasNotNfts) {
return (
<ScreenWrapper>
<ScrollView
Expand Down

0 comments on commit 75c12c7

Please sign in to comment.