Skip to content

Commit

Permalink
refactor: 메서드명 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
moonheekim0118 committed Apr 12, 2022
1 parent 9716133 commit 56293e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/moderator/productModerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class ProductModerator {
return;
}
this.vendingMachine.deleteProduct(id);
this.productPageView.renderDeleteProduct(id);
this.productPageView.deleteRenderedProduct(id);
snackbarUI.open(SNACKBAR_TYPE.ALERT, ALERT_MESSAGE.DELETE_PRODUCT);
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/ui/productPageView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ProductPageView {
);
}

renderDeleteProduct(id: string) {
deleteRenderedProduct(id: string) {
const target = $(`[data-id="${id}"]`, this.$productList);
this.$productList.removeChild(target);
}
Expand Down

0 comments on commit 56293e9

Please sign in to comment.