Skip to content

✨ Improvement: code pattern #586

Description

@yshplsngh

πŸ“œ Description

I was going through the codebase and found this pattern, is there any purpose of this. If not, we can replace it with simple false?

πŸ‘Ÿ Reproduction steps

  1. Go /job-board/src/app/(auth)/verify-email/[token]/EmailVerificationLinkExpired.tsx
  2. refer finally in below function
  3. setIsLoading(!true) instead of setIsLoading(false);

const handleResendClick = async () => { setIsLoading(true); try { await verifyEmail({ token, resend: true }); setIsEmailSent(true); } catch { toast({ variant: 'destructive', title: 'Something went wrong, please try again!', }); } finally { setIsLoading(!true); } };

πŸ‘ Expected behavior

No response

πŸ“ƒ Provide any additional context for the Bug.

No response

πŸ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏒 Have you read the Contributing Guidelines?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions