Skip to content

Commit 93122fb

Browse files
Show headerMessage only when eligible cards exist on SpendRuleCardPage
When no eligible cards exist, the BlockingView already communicates the empty state. Showing headerMessage simultaneously causes the search box text and BlockingView illustration to stack and overlap in landscape mode. Co-authored-by: Carlos Martins <luacmartins@users.noreply.github.com>
1 parent da69a09 commit 93122fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/workspace/rules/SpendRules/SpendRuleCardPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function SpendRuleCardPage({route}: SpendRuleCardPageProps) {
184184
Navigation.goBack(parentRoute);
185185
};
186186

187-
const headerMessage = getHeaderMessage(listData.length > 0, false, inputValue, countryCode, false);
187+
const headerMessage = eligibleCards.length > 0 ? getHeaderMessage(listData.length > 0, false, inputValue, countryCode, false) : '';
188188

189189
return (
190190
<AccessOrNotFoundWrapper

0 commit comments

Comments
 (0)