Skip to content

Commit b4c1600

Browse files
committed
chore: initialize email state with environment variable for API key
1 parent 2b35bfe commit b4c1600

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/src/Login.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ interface LoginProps {
2828

2929
export const Login = ({ onLoggedIn = () => {} }: LoginProps) => {
3030
const [initialized, setInitialized] = useState(false);
31-
const [email, setEmail] = useState('');
31+
const [email, setEmail] = useState(
32+
process.env.EXPO_PUBLIC_ITERABLE_API_KEY ?? ''
33+
);
3234

3335
useEffect(() => {
3436
const config = new IterableConfig();

0 commit comments

Comments
 (0)