Skip to content

Commit 8477ea7

Browse files
d4mrjoaquim-verges
authored andcommitted
uncomment conditional service account initialisation
1 parent 95fa440 commit 8477ea7

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

apps/dashboard/src/app/team/[team_slug]/[project_slug]/transactions/server-wallets/components/create-server-wallet.client.tsx

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -343,17 +343,16 @@ export default function CreateServerWallet(props: {
343343
});
344344

345345
const handleCreateServerWallet = async () => {
346-
// FIXME uncomment this
347-
// if (!props.managementAccessToken) {
348-
const initResult = await initialiseProjectWithVaultMutation.mutateAsync();
349-
await createEoaMutation.mutateAsync({
350-
managementAccessToken: initResult.managementAccessToken.accessToken,
351-
});
352-
// } else {
353-
// await createEoaMutation.mutateAsync({
354-
// managementAccessToken: props.managementAccessToken,
355-
// });
356-
// }
346+
if (!props.managementAccessToken) {
347+
const initResult = await initialiseProjectWithVaultMutation.mutateAsync();
348+
await createEoaMutation.mutateAsync({
349+
managementAccessToken: initResult.managementAccessToken.accessToken,
350+
});
351+
} else {
352+
await createEoaMutation.mutateAsync({
353+
managementAccessToken: props.managementAccessToken,
354+
});
355+
}
357356
};
358357

359358
const handleCloseModal = () => {

0 commit comments

Comments
 (0)