Kaynağa Gözat

Merge branch 'master' into paymentApi

master
Alex Cheung 1 yıl önce
ebeveyn
işleme
3c8454c902
1 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. +5
    -5
      src/pages/authentication/auth-forms/IAmSmartFormWizard.js

+ 5
- 5
src/pages/authentication/auth-forms/IAmSmartFormWizard.js Dosyayı Görüntüle

@@ -173,7 +173,7 @@ const CustomFormWizard = (props) => {
add += str.trim() ? str.trim() + ", " : "";
});
add = add.trim();
if (add.slice(- 1) == ",") {
if (add?.slice(- 1) == ",") {
add = add.substring(0, add.length - 1);
}
return add;
@@ -449,10 +449,10 @@ const CustomFormWizard = (props) => {
{/* {iAmSmartData.idNo + "(" + iAmSmartData.checkDigit + ")"} */}
</Typography>
<Typography variant="h5">
{iAmSmartData.idNo.slice(0, 4)}
{iAmSmartData?.idNo?.slice(0, 4)}
</Typography>
<Typography variant="h5">
{showId ?iAmSmartData.idNo.slice(4):"****"}{showId ? '(' + iAmSmartData.checkDigit + ')' :null}
{showId ?iAmSmartData?.idNo?.slice(4):"****"}{showId ? '(' + iAmSmartData.checkDigit + ')' :null}
</Typography>
<IconButton
aria-label="toggle id visibility"
@@ -972,11 +972,11 @@ const CustomFormWizard = (props) => {
<FormattedMessage id="userIdDoc" />
</Typography>
<Typography variant="h5" name="preview-idDocType-1">
{formik.values.idNo.slice(0, 4)}
{formik?.values?.idNo?.slice(0, 4)}
{/* {formik.values.idNo + "(" + formik.values.checkDigit + ")"} */}
</Typography>
<Typography variant="h5" name="preview-idDocType-2">
{showComId ?formik.values.idNo.slice(4):"****"}{showComId ? '(' + formik.values.checkDigit + ')' : null}
{showComId ?formik?.values?.idNo?.slice(4):"****"}{showComId ? '(' + formik.values.checkDigit + ')' : null}
{/* {formik.values.idNo + "(" + formik.values.checkDigit + ")"} */}
</Typography>
<IconButton


Yükleniyor…
İptal
Kaydet