diff --git a/app/playground/page.tsx b/app/playground/page.tsx
index 303fad5..cf9f968 100644
--- a/app/playground/page.tsx
+++ b/app/playground/page.tsx
@@ -90,11 +90,19 @@ export default function PlaygroundPage() {
setPublishing(true);
try {
- await submitMap({ map });
+ const submitted = await submitMap({ map });
- toast({
- description: "Map submitted successfully!",
- });
+ if (submitted == 200) {
+ toast({
+ description: "Map submitted successfully!",
+ });
+ } else if (submitted == 429) {
+ toast({
+ description:
+ "You have exceeded the rate limit for submitting maps. Please try again later.",
+ variant: "destructive",
+ });
+ }
} catch (error) {
if (errorMessage(error).includes(SIGN_IN_ERROR_MESSAGE)) {
setOpenSignInModal(true);
@@ -465,17 +473,20 @@ export default function PlaygroundPage() {
>
) : (
<>
-
-
+
+
+
+ *You can only submit 3 maps per minute
+
+