Explorar el Código

fix creditor with null

master
Alex Cheung hace 2 años
padre
commit
1bb0578606
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/pages/OrganizationDetailPage/OrganizationCard.js

+ 1
- 1
src/pages/OrganizationDetailPage/OrganizationCard.js Ver fichero

@@ -84,7 +84,7 @@ const OrganizationCard = ({ userData, loadDataFun, id }) => {
}, [userData]); }, [userData]);


useEffect(() => { useEffect(() => {
if(userData.creditor === undefined){
if(userData.creditor === undefined||userData.creditor === null){
userData.creditor = false userData.creditor = false
} }
setCurrentUserData(userData); setCurrentUserData(userData);


Cargando…
Cancelar
Guardar