Skip to content

Commit

Permalink
Don't strip periods in COIL values
Browse files Browse the repository at this point in the history
  • Loading branch information
mia-pi-git committed Oct 9, 2024
1 parent 3dae19b commit 7e27d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export const actions: {[k: string]: QueryHandler} = {
if (!formatid) {
throw new ActionError('No format was specified.');
}
const source = parseFloat(toID(params.coil_b));
const source = parseFloat(params.coil_b + "");
if ('coil_b' in params && (isNaN(source) || !source || source < 1)) {
throw new ActionError('No B value was specified.');
}
Expand Down

0 comments on commit 7e27d71

Please sign in to comment.