|
|
@@ -112,8 +112,7 @@ function AutoMethod(props: AutoMethodProps) {
|
|
|
|
|
|
useKeyboard((evt) => {
|
|
|
if (evt.name === "c" && !evt.ctrl && !evt.meta) {
|
|
|
- const code =
|
|
|
- props.authorization.instructions.match(/[A-Z0-9]{4}-[A-Z0-9]{4}/)?.[0] ?? props.authorization.instructions
|
|
|
+ const code = props.authorization.instructions.match(/[A-Z0-9]{4}-[A-Z0-9]{4}/)?.[0] ?? props.authorization.url
|
|
|
Clipboard.copy(code)
|
|
|
.then(() => toast.show({ message: "Copied to clipboard", variant: "info" }))
|
|
|
.catch(toast.error)
|