Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
use a different method of setting language
Browse files Browse the repository at this point in the history
  • Loading branch information
Morley Zhi committed Mar 11, 2020
1 parent bb0e4f3 commit a546efb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/wallet-sdk",
"version": "0.0.9-rc.5",
"version": "0.0.9-rc.6",
"description": "Libraries to help you write Stellar-enabled wallets in Javascript",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions src/transfers/DepositProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export class DepositProvider extends TransferProvider {
const request: DepositRequest & { account: string } = {
...params,
account: this.account,
lang: this.language,
};
const isAuthRequired = this.getAuthStatus("deposit", params.asset_code);

Expand All @@ -124,8 +125,6 @@ export class DepositProvider extends TransferProvider {
body.append(key, request[key]);
});

body.append("lang", this.language);

response = await fetch(
`${this.transferServer}/transactions/deposit/interactive`,
{
Expand Down
3 changes: 1 addition & 2 deletions src/transfers/WithdrawProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export class WithdrawProvider extends TransferProvider {
const request: WithdrawRequest & { account: string } = {
...params,
account: this.account,
lang: this.language,
};
const isAuthRequired = this.getAuthStatus("withdraw", params.asset_code);

Expand All @@ -117,8 +118,6 @@ export class WithdrawProvider extends TransferProvider {
body.append(key, request[key]);
});

body.append("lang", this.language);

response = await fetch(
`${this.transferServer}/transactions/withdraw/interactive`,
{
Expand Down

0 comments on commit a546efb

Please sign in to comment.