diff --git a/src/utils/data_validation_test.ts b/src/utils/data_validation_test.ts index fc50c217..7d7d0329 100644 --- a/src/utils/data_validation_test.ts +++ b/src/utils/data_validation_test.ts @@ -391,13 +391,13 @@ export async function verifyRateLimitAPI(octokit: Octokit, settings: GitHubPubli new Notice(i18next.t("commands.checkValidity.rateLimit.limited", {resetTime: time})); return 0; } - if (!commands) { - notif({settings}, i18next.t("commands.checkValidity.rateLimit.notLimited", { - remaining: remaining, + if (commands) { + new Notice(i18next.t("commands.checkValidity.rateLimit.notLimited", { + remaining, resetTime: time })); } else { - new Notice(i18next.t("commands.checkValidity.rateLimit.notLimited", { + notif({settings}, i18next.t("commands.checkValidity.rateLimit.notLimited", { remaining, resetTime: time }));