From 3e80ee814fe454b46398461263bc2b8c055f229a Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 26 Jan 2024 20:18:41 +0800 Subject: [PATCH] fix iAmSmart address concat bug --- src/pages/authentication/auth-forms/IAmSmartFormWizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js index ad0f14e..7fcf174 100644 --- a/src/pages/authentication/auth-forms/IAmSmartFormWizard.js +++ b/src/pages/authentication/auth-forms/IAmSmartFormWizard.js @@ -142,7 +142,7 @@ const CustomFormWizard = (props) => { const getAddressStr = (strs) => { let add = "" strs.forEach(str => { - add += str ? str + ", " : ""; + add += str.trim() ? str.trim() + ", " : ""; }); add = add.trim(); if (add.slice(- 1) == ",") {