aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx')
-rw-r--r--packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
index 92419b7ed..994a8286e 100644
--- a/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
+++ b/packages/demobank-ui/src/pages/account/ShowAccountDetails.tsx
@@ -104,7 +104,7 @@ export function ShowAccountDetails({
<Fragment>
<LocalNotificationBanner notification={notification} />
{accountIsTheCurrentUser ?
- <ProfileNavigation current="details" noCashout={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined} />
+ <ProfileNavigation current="details" />
:
<h1 class="text-base font-semibold leading-6 text-gray-900">
<i18n.Translate>Account "{account}"</i18n.Translate>
@@ -133,9 +133,7 @@ export function ShowAccountDetails({
<AccountForm
focus={update}
- noCashout={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined}
username={account}
- admin={credentials.status === "loggedIn" ? credentials.isUserAdministrator : undefined}
template={result.body}
purpose={update ? "update" : "show"}
onChange={(a) => setSubmitAccount(a)}