Skip to content

Commit 8ffae5f

Browse files
authored
Quotes: display seconds when ETA < 2 minutes, otherwise minutes (#3341)
1 parent d8e6106 commit 8ffae5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wormhole-connect/src/utils/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export const isStableCoin = (token: Token) => {
348348
};
349349

350350
export const millisToHumanString = (ts: number): string => {
351-
if (ts > 60000) {
351+
if (ts >= 2 * 60000) {
352352
const minutes = Math.ceil(ts / 60000);
353353
return `~${minutes} min`;
354354
} else {

0 commit comments

Comments
 (0)