Skip to content

Commit 353196d

Browse files
feat: some changes after lib author awesome review
1 parent 630b149 commit 353196d

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

src/app/Document.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export const Document = ({ children }: { children: ReactNode }) => {
6464
storageKey={COLOR_MODE_STORAGE_KEY}
6565
/>
6666
<Providers>
67-
{/* Putting nuqs adapter here and not in providers as the testing requires another adapter */}
6867
<NuqsAdapter>
6968
<TrpcProvider>
7069
<Viewport>{children}</Viewport>

src/features/account/AccountDeleteVerificationCodeModal.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,7 @@ export const AccountDeleteVerificationCodeModale = () => {
4242
);
4343

4444
const onClose = () => {
45-
setSearchParams({
46-
[SEARCH_PARAM_VERIFY_EMAIL]: null,
47-
token: null,
48-
attempts: null,
49-
});
45+
setSearchParams(null);
5046
};
5147

5248
const form = useForm<FormFieldsVerificationCode>({

src/features/account/EmailVerificationCodeModal.tsx

+1-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ export const EmailVerificationCodeModale = () => {
3535

3636
const onClose = () => {
3737
trpcUtils.account.get.reset();
38-
setSearchParams({
39-
verifyEmail: null,
40-
token: null,
41-
attempts: null,
42-
});
38+
setSearchParams(null);
4339
};
4440

4541
const form = useForm<FormFieldsVerificationCode>({

0 commit comments

Comments
 (0)