Showing 502 of 8,855 total issues
Function Subscription
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Subscription({}: Props) {
const [open, setOpen] = React.useState(false);
const user = useStoreState((state) => state.user);
const dptBalance = useStoreState((state) =>
state.balance.find((el) => el.tokenName === "Dappros Platform Token")
- Create a ticketCreate a ticket
Method getJSIModulePackage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
@Override
protected JSIModulePackage getJSIModulePackage() {
return new JSIModulePackage() {
@Override
public List<JSIModuleSpec> getJSIModules(
- Create a ticketCreate a ticket
Function registerValidSW
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerValidSW(swUrl: string, config?: Config) {
navigator.serviceWorker
.register(swUrl)
.then((registration) => {
registration.onupdatefound = () => {
- Create a ticketCreate a ticket
Function onCropComplete
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function onCropComplete(crop) {
const canvas = document.createElement("canvas");
const pixelRatio = window.devicePixelRatio;
const scaleX = imgRef.current.naturalWidth / imgRef.current.width;
const scaleY = imgRef.current.naturalHeight / imgRef.current.height;
- Create a ticketCreate a ticket
Function onSubmit
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSubmit: async (values) => {
const signer = library.getSigner();
try {
const msg = "Register";
const signature = await signer.signMessage(msg);
- Create a ticketCreate a ticket
Function ChangeRoomNameModal
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const ChangeRoomNameModal = (props: ChangeRoomNameModalProps) => {
const {modalVisible, setModalVisible, currentRoomName, changeRoomName} =
props;
const [newRoomName, setNewRoomName] = React.useState<string>(currentRoomName);
- Create a ticketCreate a ticket
Function submitMediaMessage
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const submitMediaMessage = (props: any, waveForm?: any) => {
props.map(async (item: any) => {
const data = {
firstName,
lastName,
- Create a ticketCreate a ticket
Function deleteItem
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const deleteItem = async () => {
setLoading(true);
try {
if (item?.isCollection) {
await httpPost(
- Create a ticketCreate a ticket
Function openPrivateRoom
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const openPrivateRoom = () => {
createPrivateChat(
user.walletAddress,
message.data.senderWalletAddress,
user.firstName,
- Create a ticketCreate a ticket
Function addNewItemHandler
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const addNewItemHandler = (data) => {
console.log('=> addNewItemHandler || Message received from ', data.receiver, data.message);
let currentButtonType = userData('getData', data.userJID, null, 'buttonType');
setAnswer(0, data.message, data.userJID, currentButtonType).then(() => {
- Create a ticketCreate a ticket
Function handleSendMessage
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleSendMessage = (messageString: any) => {
if (isEditing) {
const messageText = messageString[0].text;
const tokenAmount = messageString[0].tokenAmount || 0;
const receiverMessageId = messageString[0].receiverMessageId || 0;
- Create a ticketCreate a ticket
Function processingHandler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const processingHandler = (data) => {
console.log('=> processingHandler || Message received from ', data.receiver, data.message);
let currentButtonType = userData('getData', data.userJID, null, 'buttonType');
getListAnswersInGroup(data.receiverData.attrs.senderJID, currentButtonType).then(answerList => {
- Create a ticketCreate a ticket
Function storeItemHandler
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const storeItemHandler = (data) => {
console.log('=> storeItemHandler | Message received from ', data.receiver, data.message);
userPaymentVerify(data, botOptions.botData.storeFee).then(response => {
if (!response) {
return sendMessage(
- Create a ticketCreate a ticket
Function changeRoomIcon
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const changeRoomIcon = async (file: File) => {
const formData = new FormData();
formData.append("files", file);
setLoading("chatIcon");
try {
- Create a ticketCreate a ticket
Function Blocking
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const Blocking = (props: BlockingProps) => {
const blacklist = useStoreState((store) => store.blackList);
const handleRemoveUserFromBlackList = (userId: string) => {
console.log(userId);
- Create a ticketCreate a ticket
Function transferTokens
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const transferTokens = async (tokenAmount: number) => {
if (tokenAmount <= 0) {
showError('Error', 'Amount must be greater than 0');
return;
}
- Create a ticketCreate a ticket
Function handleBanUser
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const handleBanUser = (name: string, senderName: string) => {
const bannedUserWalletAddres = underscoreManipulation(
dataForTransfer?.walletFromJid,
);
const senderWalletAddres = underscoreManipulation(
- Create a ticketCreate a ticket
Function addReferral
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addReferral = async () => {
if (!code) {
showError('Error', 'Please, fill the code');
return;
}
- Create a ticketCreate a ticket
Function deployNfmt
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
type: string,
name: string,
description: string,
owner: string,
beneficiaries: string[],
- Create a ticketCreate a ticket
Function deployNfmt
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
type: string,
name: string,
description: string,
owner: string,
beneficiaries: string[],
- Create a ticketCreate a ticket