mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-23 23:06:39 +01:00
If duration is 0 we return "0.000 seconds" instead of empty string
This commit is contained in:
parent
e0e14431e4
commit
a1cb6d5619
1 changed files with 5 additions and 1 deletions
|
@ -566,6 +566,10 @@ public class Utilities {
|
|||
duration = StringUtils.replacePattern(duration, "^0 minutes, ", "");
|
||||
duration = StringUtils.replacePattern(duration, "^0 seconds, ", "");
|
||||
|
||||
return duration.trim();
|
||||
String result = duration.trim();
|
||||
if (result.isEmpty()) {
|
||||
result = "0.000 seconds";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue