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

@@ -454,6 +454,7 @@
"trafficUnavailable": "Traffic purchase is not available for your tariff",
"unlimited": "Unlimited",
"buyTrafficGb": "Buy {{gb}} GB",
"buyUnlimited": "Buy Unlimited",
"manageServers": "Server management",
"manageServersTitle": "Server management"
},