Skip to content

Commit

Permalink
CORE-2016: simplify onDelete for the AddonRatesEditor.
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Sarando <[email protected]>
  • Loading branch information
slr71 and psarando authored Jan 15, 2025
1 parent 6c21780 commit ca968f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/subscriptions/addons/edit/AddonRatesEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ function AddonRateEditorRow(props) {
<Button
id={buildID(baseId, ids.DELETE_BUTTON)}
aria-label={t("common:delete")}
onClick={() => {
onDelete(key);
}}
onClick={onDelete}
>
<Delete />
</Button>
Expand Down

0 comments on commit ca968f2

Please sign in to comment.