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

Commit

Permalink
Also consider 0 (zero) as "simple" fee type, update changelog with bu…
Browse files Browse the repository at this point in the history
…mped version v0.3.0-rc.8 (#239)

Also consider 0 (zero) as "simple" fee type, update changelog with bumped version v0.3.0-rc.8
  • Loading branch information
CassioMG authored May 21, 2021
1 parent 48f1368 commit edb232d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## In master

## [v0.3.0-rc.8](https://github.com/stellar/js-stellar-wallets/compare/v0.3.0-rc.7...v0.3.0-rc.8)

- Also consider 0 (zero) as "simple" fee type when parsing asset info.

## [v0.3.0-rc.7](https://github.com/stellar/js-stellar-wallets/compare/v0.3.0-rc.6...v0.3.0-rc.7)

- [Fixed] Added sponsor address to `AccountDetails`.
Expand Down
4 changes: 2 additions & 2 deletions src/transfers/parseInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const parseFee = (
feeEnabled: boolean,
): Fee => {
if (
(fee_fixed && Number(fee_fixed) > 0) ||
(fee_percent && Number(fee_percent) > 0)
(fee_fixed && Number(fee_fixed) >= 0) ||
(fee_percent && Number(fee_percent) >= 0)
) {
return {
type: "simple",
Expand Down

0 comments on commit edb232d

Please sign in to comment.