caverav / auditforge

Found non-null assertions JS-0339
Anti-pattern
Major
3 occurrences in this check
257      return;
258    }
259    try {
260      await createCollaborator(updatedCollaborator!);261      toast.success(t('msg.collaboratorCreatedOk'));
262      setIsOpenAddCollabModal(!isOpenAddCollabModal);
263
222  const handleSubmitAddCollab = async () => {
223    const updatedCollaborator: NewCollaborator = {
224      ...newCollaborator!,
225      role: selectedRole?.value!,226    };
227
228    let isValid = true;
221
222  const handleSubmitAddCollab = async () => {
223    const updatedCollaborator: NewCollaborator = {
224      ...newCollaborator!,225      role: selectedRole?.value!,
226    };
227