Skip to content

Commit

Permalink
ABW-2092 Make zero a valid amount (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciek-rdx committed Sep 4, 2023
1 parent e7393c9 commit b6909cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public struct FungibleResourceAsset: Sendable, FeatureReducer {
case let .amountChanged(transferAmountStr):
state.transferAmountStr = transferAmountStr

if let value = try? BigDecimal(localizedFromString: transferAmountStr), value > 0 {
if let value = try? BigDecimal(localizedFromString: transferAmountStr), value >= 0 {
state.transferAmount = value
} else {
state.transferAmount = nil
Expand Down

0 comments on commit b6909cb

Please sign in to comment.