From 56d1c92ef883c29bf52f11b42eaea35c7b95cb08 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 14 Jun 2021 17:50:21 +0100 Subject: [PATCH] you can only join as the call owner when fetching a token --- dailyjs/basic-call/components/Intro/Intro.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dailyjs/basic-call/components/Intro/Intro.js b/dailyjs/basic-call/components/Intro/Intro.js index 706ea4d..be04274 100644 --- a/dailyjs/basic-call/components/Intro/Intro.js +++ b/dailyjs/basic-call/components/Intro/Intro.js @@ -47,9 +47,11 @@ export const Intro = ({ room, error, domain, onJoin, fetching = false }) => { setFetchToken(e.target.checked)} /> - - setOwner(e.target.checked)} /> - + {fetchToken && ( + + setOwner(e.target.checked)} /> + + )}