From 9c9ac4a0662ccc9547cf76df16a18ebcc9feb6f0 Mon Sep 17 00:00:00 2001 From: Martin Benedikt Busch Date: Wed, 14 Feb 2024 14:33:16 +0100 Subject: [PATCH] add conditonal rendering if value exists --- packages/berlin/src/pages/Account.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/berlin/src/pages/Account.tsx b/packages/berlin/src/pages/Account.tsx index 3dc7eaac..fdf8c718 100644 --- a/packages/berlin/src/pages/Account.tsx +++ b/packages/berlin/src/pages/Account.tsx @@ -306,7 +306,7 @@ function AccountForm({ onBlur={field.onBlur} value={field.value} onOptionCreate={field.onChange} - placeholder="Select or create credential" + placeholder={field.value ? field.value : "Select or create credential"} errors={[ errors.userAttributes?.credentialsGroup?.[i]?.credential?.message ?? '', ]}