Update underlying model representation for PATs

This commit is contained in:
Dane Everitt
2021-07-28 20:53:54 -07:00
parent d60e8a193b
commit 1a3451fb0d
12 changed files with 135 additions and 24002 deletions

View File

@@ -30,7 +30,7 @@ export default ({ onKeyCreated }: { onKeyCreated: (key: ApiKey) => void }) => {
.then(({ secretToken, ...key }) => {
resetForm();
setSubmitting(false);
setApiKey(`${key.identifier}${secretToken}`);
setApiKey(secretToken);
onKeyCreated(key);
})
.catch(error => {