Add conditional logging for development, improve token refresh logic, and remove outdated comments
- Wrap `console.log` calls in `if (process.env.NODE_ENV === 'development')` to prevent production logs in `forms/page.tsx`. - Refactor token refresh logic by relying solely on the `refreshPromise` to avoid race conditions. - Remove outdated `isRefreshing` flag, utilizing `refreshPromise` as the primary lock. - Update comments in `IMPLEMENTATION_PLAN.md` to reflect the current progress and eliminate redundant sections.
This commit is contained in:
@@ -246,7 +246,6 @@ describe('FormField', () => {
|
||||
render(
|
||||
<FormField
|
||||
label="Email"
|
||||
// @ts-expect-error - Testing missing name
|
||||
name={undefined}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user