Booking Limits checking ALL events not the event the limit is applied too (#5601)

* Fix error message

* Only apply buffer limits to That event type

* Correctly get eventtypeId in source

* Add comment

* Move to i188n strings

* Wrap string to be translated

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
sean-brydonandAlex van Andel authored and GitHub committed 2022-11-22 03:17:54 +00:00
1 parent 994df45a19
commit 9441a79def
5 files changed
+11 -6

No files matched your search

@@ -911,7 +911,7 @@ function ErrorMessage({ error }: { error: unknown }) {
<div className="ltr:ml-3 rtl:mr-3">
<p className="text-sm text-yellow-700">
{rescheduleUid ? t("reschedule_fail") : t("booking_fail")}{" "}
{error instanceof HttpError || error instanceof Error ? error.message : "Unknown error"}
{error instanceof HttpError || error instanceof Error ? t(error.message) : "Unknown error"}
</p>
</div>
</div>
@@ -1372,5 +1372,6 @@
"test_preview": "Test Preview",
"route_to": "Route to",
"test_preview_description": "Test your routing form without submitting any data",
"test_routing": "Test Routing"
"test_routing": "Test Routing",
"booking_limit_reached":"Booking Limit for this event type has been reached"
}