diff options
author | Sebastian <sebasjm@gmail.com> | 2023-03-12 23:56:54 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-03-12 23:56:54 -0300 |
commit | b874f9a0c50084803de58febb698864aa8dd061a (patch) | |
tree | 50f23d8faa674a94646a21c5821fd4f494c60f64 /packages/merchant-backoffice-ui/src/hooks | |
parent | ae1aee13581469a8398321b57e95cc85f210047b (diff) | |
download | wallet-core-b874f9a0c50084803de58febb698864aa8dd061a.tar.xz |
print and setup totp
Diffstat (limited to 'packages/merchant-backoffice-ui/src/hooks')
-rw-r--r-- | packages/merchant-backoffice-ui/src/hooks/templates.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/merchant-backoffice-ui/src/hooks/templates.ts b/packages/merchant-backoffice-ui/src/hooks/templates.ts index dd096e4f9..97fb165b9 100644 --- a/packages/merchant-backoffice-ui/src/hooks/templates.ts +++ b/packages/merchant-backoffice-ui/src/hooks/templates.ts @@ -244,7 +244,11 @@ export function useTemplateDetails( }); if (isValidating) return { loading: true, data: data?.data }; - if (data) return data; + if (data) { + const d = structuredClone(data); + d.data.pos_algorithm = 1; + return d; + } if (error) return error.info; return { loading: true }; } |