chore: add axios

This commit is contained in:
EsioFreitas
2022-12-07 20:47:51 -03:00
parent f2b7617726
commit 979e5f9fb1
5 changed files with 93 additions and 13 deletions

View File

@@ -69,7 +69,7 @@ const generatePixKey = (pixKey: string, message?: string): string => {
};
const formatEMV = (id: string, param: string): string => {
const len = param.length.toString().padStart(2, "0");
const len = param?.length?.toString().padStart(2, "0");
return `${id}${len}${param}`;
};