chore: add credentials type to the url if exists

This commit is contained in:
Pablo Lara
2024-10-31 06:48:58 +01:00
parent 052b882195
commit 9882cd53cf
@@ -84,7 +84,12 @@ export const ConnectAccountForm = () => {
id,
attributes: { provider },
} = data.data;
router.push(`/providers/add-credentials?provider=${provider}&id=${id}`);
const credentialsParam = values.awsCredentialsType
? `&via=${values.awsCredentialsType}`
: "";
router.push(
`/providers/add-credentials?provider=${provider}&id=${id}${credentialsParam}`,
);
}
};