diff --git a/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx b/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx index cb0e9ba801..cd2272d313 100644 --- a/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx +++ b/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx @@ -72,7 +72,7 @@ export const Client: React.FC = ({ apis }) => { }; const initialCardStates: CardStates = {}; - apis.map((api) => { + apis.forEach((api) => { initialCardStates[api.id] = false; }); const [cardStatesMap, setCardStatesMap] = useState(initialCardStates); @@ -161,13 +161,13 @@ export const Client: React.FC = ({ apis }) => { {api.name}