diff --git a/src/components/UserLookup.tsx/UserLookup.tsx b/src/components/UserLookup.tsx/UserLookup.tsx index b2c6736..300ca2f 100644 --- a/src/components/UserLookup.tsx/UserLookup.tsx +++ b/src/components/UserLookup.tsx/UserLookup.tsx @@ -102,7 +102,16 @@ export const UserLookup = ({ isOpenDrawerLookup, setIsOpenDrawerLookup }) => { }; }, [openUserLookupDrawerFunc]); - + const onClose = ()=> { + setIsOpenDrawerLookup(false) + setNameOrAddress('') + setErrorMessage('') + setPayments([]) + setIsLoadingUser(false) + setIsLoadingPayments(false) + setAddressInfo(null) + } + return ( @@ -138,7 +147,9 @@ export const UserLookup = ({ isOpenDrawerLookup, setIsOpenDrawerLookup }) => { } }} /> - + { + lookupFunc(); + }} > { marginLeft: 'auto', }} onClick={()=> { - setIsOpenDrawerLookup(false) + onClose() }}>