Clean up ether store

Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
This commit is contained in:
RcleydsonR
2023-01-19 19:42:57 -03:00
parent 2b61625e1e
commit d7723ebf07
7 changed files with 41 additions and 75 deletions

View File

@@ -35,7 +35,10 @@ const handleInputEvent = (event: any): void => {
validDecimals.value = true;
};
const handleButtonClick = async (offer: string, pixKey: string): Promise<void> => {
const handleButtonClick = async (
offer: string,
pixKey: string
): Promise<void> => {
if (walletAddress.value) emit("approveTokens", { offer, pixKey });
else await connectProvider();
};