Skip to content

Commit 23701b5

Browse files
committed
swap: fix warning message flicker
1 parent 985fcc9 commit 23701b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/store/stores/buildSwapStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class BuildSwapStore {
180180
@computed
181181
get isLoopInMinimumMet() {
182182
const { min, max } = this.getTermsForDirection(SwapDirection.IN);
183-
if (!max.gt(min)) return false;
183+
if (!max.gte(min)) return false;
184184

185185
if (this.selectedChanIds.length > 0) {
186186
return this.loopInLastHop !== undefined;
@@ -196,7 +196,7 @@ class BuildSwapStore {
196196
@computed
197197
get isLoopOutMinimumMet() {
198198
const { min, max } = this.getTermsForDirection(SwapDirection.OUT);
199-
if (!max.gt(min)) return false;
199+
if (!max.gte(min)) return false;
200200

201201
return true;
202202
}

0 commit comments

Comments
 (0)