From fd5ed8aa4f159c8e1c0476915432e0a97a239a91 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 1 Oct 2022 19:48:06 +0530 Subject: fixed warning 'component changing controlled input to uncontrolled' while editing shipping addresses --- src/components/tables/client-table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/tables/client-table.js') diff --git a/src/components/tables/client-table.js b/src/components/tables/client-table.js index ffbf5e8..d3b5c25 100644 --- a/src/components/tables/client-table.js +++ b/src/components/tables/client-table.js @@ -19,8 +19,8 @@ import './scss/client-table.scss'; import { deleteClient } from './../../classes/client'; const ClientTable = (props) => { - const handleEdit = (i) => { - props.setItemToEdit(i) + const handleEdit = (c) => { + props.setClientToEdit(c) } const handleDelete = (c) => { -- cgit v1.2.3