Skip to content

Commit

Permalink
chore: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Feb 29, 2024
1 parent baf71df commit 2802e3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/commerce/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export class CommerceModule extends ModuleBase {
const newLastDigitValue = newLastDigit * fraction;
const combined = generated - oldLastDigitValue + newLastDigitValue;

if (combined <= max && combined >= min) {
if (min <= combined && combined <= max) {
return `${symbol}${combined.toFixed(dec)}`;
}

Expand Down

0 comments on commit 2802e3c

Please sign in to comment.