dappros/ethora

View on GitHub
client-reactnative/src/components/Modals/Chat/ChatLongTapUserActions.tsx

Summary

Maintainability
A
3 hrs
Test Coverage

Function onDirectMessagePress has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const onDirectMessagePress = async () => {
    const otherUserWalletAddress = dataForTransfer?.walletFromJid;
    const myWalletAddress = loginStore.initialData.walletAddress;
    const combinedWalletAddress = [myWalletAddress, otherUserWalletAddress]
      .sort()

Function handleBanUser has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const handleBanUser = (name: string, senderName: string) => {
    const bannedUserWalletAddres = underscoreManipulation(
      dataForTransfer?.walletFromJid,
    );
    const senderWalletAddres = underscoreManipulation(

There are no issues that match your filters.

Category
Status