Skip to content

Commit 9bcf3e8

Browse files
committed
Fix GiftCardPurchaseScene title
1 parent 6380d95 commit 9bcf3e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/Main.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,12 @@ const EdgeAppStack: React.FC = () => {
948948
options={{
949949
headerTitle: () => (
950950
<ParamHeaderTitle<'giftCardPurchase'>
951-
fromParams={params => params.brand.brandName}
951+
fromParams={params =>
952+
// Strip trailing price range patterns like "$5-$500" or "5-500 USD"
953+
params.brand.brandName
954+
.replace(/\s*\$?\d+\s*-\s*\$?\d+(?:\s+[A-Z]{3})?\s*$/, '')
955+
.trim()
956+
}
952957
/>
953958
)
954959
}}

0 commit comments

Comments
 (0)