mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 09:52:23 +01:00
Add check for price==0
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
51c7e40be9
commit
2535f01eb1
@ -104,7 +104,7 @@ class BalanceEntryItem {
|
||||
type = Optional.of(baseBalanceEntry.getType());
|
||||
}
|
||||
|
||||
if (price.isEmpty() || receivedBtc.isEmpty()) {
|
||||
if (price.isEmpty() || price.get().getValue() == 0 || receivedBtc.isEmpty()) {
|
||||
receivedBtcAsBsq = Optional.empty();
|
||||
} else {
|
||||
long volume = price.get().getVolumeByAmount(Coin.valueOf(receivedBtc.get())).getValue();
|
||||
|
Loading…
Reference in New Issue
Block a user