Skip to content

Commit

Permalink
[FIX] eslint error 'radix' in all modules
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Jan 19, 2024
1 parent 13b726e commit 1f6aa17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ChooseDeliveryCarrierPopup extends AbstractAwaitablePopup {
}
onChange(carrierId) {
const selected = this.props.chooses.find(
(item) => parseInt(carrierId) === item.carrier_id[0]
(item) => parseInt(carrierId, 10) === item.carrier_id[0]
);
this.state.choose = selected;
}
Expand Down
2 changes: 1 addition & 1 deletion pos_partner_firstname/static/src/js/PartnerDetailsEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ odoo.define("pos_partner_firstname.PartnerDetailsEdit", function (require) {
const processedChanges = {};
for (const [key, value] of Object.entries(this.changes)) {
if (this.intFields.includes(key)) {
processedChanges[key] = parseInt(value) || false;
processedChanges[key] = parseInt(value, 10) || false;
} else {
processedChanges[key] = value;
}
Expand Down

0 comments on commit 1f6aa17

Please sign in to comment.