Skip to content

Commit

Permalink
fix: removed create partner api from invite page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tushar-4781 authored and vinaybadgujar102 committed Oct 7, 2023
1 parent 9d10dd8 commit 218de20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/InvitePage/InvitePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { darkModeState, displayToast } from "@src/store";
import { addContact } from "@src/api/ContactsAPI";
import { acceptRelationship } from "@src/services/contact.service";
import OnboardingLayout from "@src/layouts/OnboardingLayout";
import { createPartner } from "@src/api/PartnerAPI";

const InvitePage = () => {
const navigate = useNavigate();
Expand All @@ -25,7 +24,7 @@ const InvitePage = () => {
const res = await acceptRelationship();
if (res.success && res.response?.relId) {
const { relId } = res.response;
await Promise.all([addContact(newContactName, relId, true), createPartner(relId, newContactName)]);
await addContact(newContactName, relId, true);
setNewContactName("");
}
navigate("/");
Expand Down

0 comments on commit 218de20

Please sign in to comment.