Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit d2fac88

Browse files
committed
updates API routes for saving maker info
1 parent 0a48031 commit d2fac88

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

components/maker/kyc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const KYC = ({ app, user, apiServer }) => {
1111
const initiateKYC = async () => {
1212
setLoading(true)
1313
setModalState(true)
14-
const url = `${apiServer}/api/maker/apps/${app.id}/initiate-kyc?appId=${app.id}`
14+
const url = `${apiServer}/api/maker/apps/initiate-kyc?appId=${app.id}`
1515
const response = await fetch(url, {
1616
method: 'POST',
1717
headers: new Headers({

components/maker/legal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ParticipationAgreement = ({ app, apiServer, user }) => {
4343

4444
const getDocument = async () => {
4545
setLoading(true)
46-
const url = `${apiServer}/api/maker/apps/${app.id}/make-participation-agreement?name=${name}&email=${email}&isUSA=${isUsa()}&appId=${app.id}`
46+
const url = `${apiServer}/api/maker/apps/make-participation-agreement?name=${name}&email=${email}&isUSA=${isUsa()}&appId=${app.id}`
4747
const response = await fetch(url, {
4848
method: 'POST',
4949
headers: new Headers({

components/maker/payment/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ const PaymentDetails = ({ app, apiServer, accessToken, user }) => {
6161
setStxValid(true)
6262
}
6363
setSaving(true)
64-
const response = await fetch(`${apiServer}/api/maker/apps/${app.id}?appId=${app.id}`, {
64+
console.log(stxAddress)
65+
const response = await fetch(`${apiServer}/api/maker/apps?appId=${app.id}`, {
6566
method: 'POST',
6667
headers: new Headers({
6768
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)