Добавлена привязка контекста к методу

This commit is contained in:
kuduzow
2022-12-18 22:22:21 +03:00
parent ccddae6d22
commit 54dece9f52

View File

@@ -26,6 +26,7 @@ class ReferralSystem {
this.getSubscribersList = this.getSubscribersList.bind(this);
this.createReferralLink = this.createReferralLink.bind(this);
this.subscribeToReferral = this.subscribeToReferral.bind(this);
this.getMyReferral = this.getMyReferral.bind(this);
}
getLink = (refererAddress: string) => fetchWithValidation(`${this.apiUrl}/referer/view/link`, linkSchema, {