(undefined)
useEffect(() => {
- // Only prompt when user is allowed to change the ticket delivery address.
- // Otherwise this toast is noisy (they can't fix it within the cooldown window).
- if (!ticketAddressModifyLimit.loaded) return
- if (!ticketAddressModifyLimit.canModify) return
const id = address?.id
if (!id) return
if (deliveryRangeCheckedAddressId !== id) return
@@ -1004,9 +854,7 @@ const OrderConfirm = () => {
address?.id,
addressHasCoords,
deliveryRangeCheckedAddressId,
- inDeliveryRange,
- ticketAddressModifyLimit.loaded,
- ticketAddressModifyLimit.canModify
+ inDeliveryRange
])
// When tickets/stock change, clamp quantity into [0..maxQuantity].
@@ -1145,12 +993,6 @@ const OrderConfirm = () => {
{address.name} {address.phone}
- {ticketAddressModifyLimit.loaded && !ticketAddressModifyLimit.canModify && (
-
- 送水地址每{ADDRESS_CHANGE_COOLDOWN_DAYS}天可修改一次
- {ticketAddressModifyLimit.nextAllowedText ? `,${ticketAddressModifyLimit.nextAllowedText} 后可修改` : ''}
-
- )}
@@ -1342,7 +1184,7 @@ const OrderConfirm = () => {
@@ -1426,7 +1268,7 @@ const OrderConfirm = () => {
{noUsableTickets ? (
) : (