Skip to content

Commit

Permalink
refactor(ratio): match destructure
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Mar 8, 2023
1 parent 5de7913 commit b35afb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/zoe/src/contractSupport/ratio.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export const parseRatio = (
throw Fail`Invalid numeric data: ${numeric}`;
}

const [whole, part = ''] = [match[1], match[2]];
const [_, whole, part = ''] = match;
return makeRatio(
BigInt(`${whole}${part}`),
numeratorBrand,
Expand Down

0 comments on commit b35afb3

Please sign in to comment.