fix bugs
This commit is contained in:
2
App.tsx
2
App.tsx
@@ -181,7 +181,7 @@ class Api {
|
|||||||
const res = await fetch(`${Api.BASE_URL}/verify-otp`, {
|
const res = await fetch(`${Api.BASE_URL}/verify-otp`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: this.headers(),
|
headers: this.headers(),
|
||||||
body: JSON.stringify({ walletType, mobile, otp, ...params }),
|
body: JSON.stringify({ walletType, mobile, otp, params }),
|
||||||
});
|
});
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
if (!data.success) throw new Error(data.message);
|
if (!data.success) throw new Error(data.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user