diff --git a/src/screens/Profile/AgentIdCard.tsx b/src/screens/Profile/AgentIdCard.tsx index 333a4e68..632e5919 100644 --- a/src/screens/Profile/AgentIdCard.tsx +++ b/src/screens/Profile/AgentIdCard.tsx @@ -73,8 +73,8 @@ const AgentIdCard = () => { const originalImageUri = useAppSelector((state) => state.profile.originalImageUri); const optimizedImageUri = useAppSelector((state) => state.profile.optimizedImageUri); const agentName = useAppSelector((state) => state.user.user?.name!!); - const agencyName = useAppSelector((state) => state.profile.agencyName); - const agencyCode = useAppSelector((state) => state.profile.agencyCode); + const agencyName = useAppSelector((state) => state.profile?.agencyName); + const agencyCode = useAppSelector((state) => state.profile?.agencyCode);