fix(blog): localize 429 rate limit error in subscription modal
Deploy Frontend / deploy (push) Successful in 1m18s
Deploy Frontend / deploy (push) Successful in 1m18s
This commit is contained in:
1 parent
e7bfd6b068
commit
9373b88263
1 file changed
+12
@@ -128,6 +128,18 @@ export default function SubscribeModal({
|
||||
return;
|
||||
}
|
||||
|
||||
if (response.status === 429) {
|
||||
setStatus({
|
||||
kind: "done",
|
||||
message:
|
||||
labels.error && labels.error.includes("خطایی")
|
||||
? "تعداد درخواستهای شما بیش از حد مجاز است. لطفاً چند لحظه بعد دوباره تلاش کنید."
|
||||
: "Too many attempts. Please wait a minute and try again.",
|
||||
isError: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
setStatus({
|
||||
kind: "done",
|
||||
message: payload?.message || labels.error,
|
||||
|
||||
Reference in new issue
Block a user