fix: handle unlimited traffic package selection and button text

- Fix falsy check: selectedTrafficPackage !== null instead of truthy
  (gb=0 for unlimited was evaluated as false, hiding the buy button)
- Show "Buy Unlimited" instead of "Buy 0 GB" for unlimited packages
- Add buyUnlimited translation key to all 4 locales
This commit is contained in:
Fringg
2026-02-11 18:20:21 +03:00
parent 2964236cdc
commit 1d6ec70116
5 changed files with 7 additions and 1 deletions

View File

@@ -328,6 +328,7 @@
"trafficUnavailable": "خرید ترافیک برای اشتراک شما در دسترس نیست",
"unlimited": "نامحدود",
"buyTrafficGb": "خرید {{gb}} GB",
"buyUnlimited": "خرید نامحدود",
"manageServers": "مدیریت سرورها",
"manageServersTitle": "مدیریت سرورها"
},